• Index
  • » Users
  • » Ivan
  • » Posts

Posts

Posts

Nov-07-18 05:29:24
Get Photos or Import URL for Graph Api 3.2
Category: JFBConnect

I have tried this:

   

Code:

   $params['access_token'] = JFBCFactory::usermap()->getUserAccessToken($userid, 'facebook');

         
         
            $photos = $this->api('/'.$fbuserid.'/photos', $params['access_token']);

But no luck

Nov-06-18 03:30:17
Get Photos or Import URL for Graph Api 3.2
Category: JFBConnect

Hi,

Previously I was getting photos using the code below to first get album ids then get the photos. I can still get a list of albums but I can no longer get the photos listed in the album.
From the documentation it seems I am missing an access token. How can i get this access token from JFBConnect to pass to the photos function getAlbumById?




    function getAlbums ()
    {      
        try {       
        return $this->api('me/albums');   
                         
        }     
        catch (Exception $ex) {
            return array();
        }
    }




    function getAlbumById ($aid)
    {
        try {
            $photos = $this->api($aid.'/photos');         
            return $photos;   
        }
        catch (Exception $ex) {
            return array();
        }
    }

Jun-07-18 15:56:49
Can content be autoposted to our facebook page automatically
Category: JFBConnect

OKay,

I do not wish to publish content to a users page instead i want when the user creates content on my site for it to be published automatically on our page which we already have setup.  It does seem possible with what you stated right....

Jun-07-18 15:25:00
Can content be autoposted to our facebook page automatically
Category: JFBConnect

Okay,

So first we must upgrade to the latest FB. This should be out next week right. I would basically need to prompt the user for permission then if granted post the content on our page. Are there any threads here that explain a bit more detail on what function in the api to do this?

Jun-07-18 14:57:36
Can content be autoposted to our facebook page automatically
Category: JFBConnect

With the new release of sourcecoast plugin for 2.5 can the content be automatically posted to our Facebook page? If so what permission would this require?

May-07-15 15:21:54
Cant connect
Category: JFBConnect

Hi,

I cant seem to be able to connect anymore on the webste. I was using     6.0.3.
I am not getting any errors just the dialogue box closes and doesnt log me in.
Are there any known issues upgrading from 6.0.3 to the latest?
Do I need to do any changes on any DB tables?

Apr-28-15 21:32:10
how can i achieve this
Category: JFBConnect

Hi alex,

I would like to be able to execute the faebook dialogue box pop up when inside canvas. I had written about this in a post a while ago:

https://www.sourcecoast.com/forums/jfbc … nect-click

I had done this before in joomla 1.5 but unable to achieve this there. Could you pleas inform what are the necessary code steps. I already tried what u last mention in that post
and no luck. I know changes have occured in the code. Please let me know how to implement this even if pop ups are blocked.

The issue was that the gzip compression messes up the linter tool

Feb-22-15 21:41:52
Image Tag is not present when Like is used.
Category: JFBConnect

Hi,

I have a custom component. When I enable the Like on my custom component it overrides my graph tags that i already added.

When enabled {JFBCLike ...} The type is changed to "article" and the image is not present even though i specify it using the {JFBCGraph image=...}

I noticed the actions where not being posted because it change my app type to article so i went into libraries/sourcecoast/openGraph.php and in LINE 423

To make this work in function getCurrentPageTypeTag()

I changed

Code:

   else

                               $type = "my_app:myobject";
                               return $type;

This makes the Like work however the image Tag is not present. Do you know the reason why its not there?

Feb-05-15 22:41:27
how to explicit share
Category: JFBConnect

Hi,

Lets say you have an input box where you enter something that you want to share to your timeline. Can you have a checkbox beside an ADD Button that will specify that you want to share explicitly to your timeline? Is this against Facebook policy?

Eg. I want to go to ______________   ADD       CheckBox Automatically checked.

Jan-20-15 13:13:13
jomsocial group page multiple og image tags
Category: JFBConnect

Yes, Commenting that section fixed the og image error i was getting when upload a photo and i am now able to invoke the photos upload action. However for join group at the group page that code i pasted above is showing up. Thats telling me there is something else rendering 2 additional tags on the individual groups page. I need to find out what is rendering that code there and comment out those 2 tags.

Jan-20-15 09:25:56
jomsocial group page multiple og image tags
Category: JFBConnect

It was missing the http://domainame.com. I fixed the issue, however when i go to groups i seem to be getting another set of og:image  tags 2 times this time and i haven't found where in jomsocial these are coming from. Because of this the join group action errors out. I need to find this section of code its not in head.php

Code:



<link rel="image_src" href="/" />
  <link rel="alternate" type="application/rss+xml" title="Announcement Feeds" href="/bucketlist/groups/1-achievements/62-janumada-jodi/view-all-announcements/feed"/>
  <link rel="alternate" type="application/rss+xml" title="Discussion Feeds" href="/bucketlist/groups/1-achievements/62-janumada-jodi/discussions/feed"/>
  <link rel="alternate" type="application/rss+xml" title="Group Photo Feeds" href="/bucketlist/photos/1-achievements/62-janumada-jodi/feed"/>
  <link rel="alternate" type="application/rss+xml" title="Group Video Feeds "  href="/bucketlist/videos/1-achievements/62-janumada-jodi/feed"/>
  <link rel="alternate" type="application/rss+xml" title="Group Event Feeds"  href="/bucketlist/events/1-achievements/62-janumada-jodi/feed"/>
  <meta property="og:image" content="/components/com_community/assets/group.png"/>
  <meta property="og:image" content="/components/com_community/assets/cover-group-default.png"/>

Jan-19-15 19:50:24
jomsocial group page multiple og image tags
Category: JFBConnect

I am getting the error below:


Object at URL 'mysiteurl' of type 'myapp_app:group' is invalid because the given value '/components/com_community/assets/group.png' for property 'og:image:url' could not be parsed as type .

When I did a view source I am noticing 2 instances of og:image that seem to be inserted via jomsocial. Does anyone know where this is happening. What is the path of this file in jomsocial?

I noticed someone already posted about this here: https://www.sourcecoast.com/forums/jfbc … eter-error

Dec-11-14 21:39:29
Enable JFBConnect Button on Jomsocial Registration
Category: JFBConnect

How to Enable JFBConnect Button on Jomsocial Registration Page?

Sep-23-14 12:24:43
Is it possible to automatically post to your facebook page via a cron job?
Category: JFBConnect

Hi Alex,

Would it be possible to automatically post a link to our facebook page via any JFBConnect function from a cron job?

How can I trigger a facebook request to all users who have connected and send them a App Request?

I have a site and for every user that signs up I would like to send a Facebook App Request of an alert if another user signs up and submits certain information via a form.
Do you think is is possible with the current JFBConnect?


Ivan

Sep-15-14 15:01:24
unable to trigger open graph action button - internal server error 500
Category: JFBConnect

What was happening is that I had the code in my component. Due to jomsef it would write the url then the index part attached to it. Decided not to use jomsef. But this code edit you mentioned should maybe be applied for future versions.

Sep-09-14 19:28:03
getSignedRequest
Category: JFBConnect

Hi,

Using the JFBConnect Library or Utilities. Is it possible to getSignedRequest . I would like to check if the user has liked my page from withing the Page Tab url eg.



Code:



$app_id = "apid";
$app_secret = "appsecret";
$facebook = new Facebook(array(
        'appId' => $app_id,
        'secret' => $app_secret,
        'cookie' => true
));


$signed_request = $facebook->getSignedRequest();

$like_status = $signed_request["page"]["liked"];

// If a fan is on your page
if ($like_status) {
$a = file_get_contents("https://mysite/likepage");
echo ($a);
} else {
// If a non-fan is on your page
$a = file_get_contents("https://mysite.com/reveal");
echo ($a);
}


Sep-06-14 18:32:00
unable to trigger open graph action button - internal server error 500
Category: JFBConnect

Hi,

I am using jomsef but for jfbconnect i do not have it using it. However when i try to trigger an action i get an error:

please see:
http://mercadobelize.com/deals/55-iphone-3gs/entry

I have highlighter where the error is.

It seems to be that the right url is not request. Could i fix this by hardcoding my domain for now? Ive looked at jfbconnect.js for where I could hardcode but not sure exactly where the url is requested.

https://www.sourcecoast.com/images/agorapro/attachments/515/mini_unabletopost.png

Aug-29-14 22:04:37
Cant seem to be able to get approved for this
Category: JFBConnect

Hi,

I have created a new app and in the facebook configurations joomla backend for permissions I added : publish_actions.

The reviewers cannot seem to get this permission when reviewing. I am not so sure why. The responded with this message.

publish_actions
on Web -
We could not reproduce the requested permission. Please submit detailed, step-by-step English instructions in the "Add Notes" section of the permission, and make sure to provide the relevant version of your app. See here for additional information on login permission requirements.


What are the correct procedures for Submitting this permission?

When I tested with my account which is the admin  I get this message on the dialogue box: The following permissions have not been approved for use and  are not being  shown to  people using your app:publish_actions. Submit for review now or learn more.


I dont understand how can the reviewers get the publish actions if it has not been submitted yet?

Below are some screen shots of how i am logging in.

https://www.sourcecoast.com/images/agorapro/attachments/515/mini_publish-actions2.png

After I click on okay i get this message?


https://www.sourcecoast.com/images/agorapro/attachments/515/mini_publish-actions3.png

Jul-16-14 23:38:08
Errors in Open Graph Activity
Category: JFBConnect

Hi,

I am seeing some errors in the open graph activity back end table. Mainly errors saying requires publish actions permissions... Does this mean that users are giving initial permissions but then skipping the 2nd set of permissions? Is there anyway to make the permissions mandatory?

Alex i tried this:

Code:


       $fbCanvas = JFBConnectProviderFacebookCanvas::getInstance();
       
    /** CODE EDIT - Auto Connect If in FB Canvas  **/
    if ($fbCanvas->get('canvasEnabled', false))
    {
    $autoclick = "<script type=\"text/javascript\">jfbc.login.provider('facebook');</script>";
    }

And at the bottom :

Code:


EOT;

     $javascript .= $autoclick;

The script is rendered when i do a view source but the function isnt executed.


Ivan

Hi Alex,

I went to components/com_jfbconnect/libraries/provider/facebook.php and where the check for canvas url is i added:


Code:


  if ($fbCanvas->get('canvasEnabled', true))
           $subs .= "jfbc.login.provider('facebook');";

So when you are a new user and you go to the app this will prompt for permissions since we have not connected. I give email then the 2nd dialogue box for permissions then it takes me to the loginregister page and it keeps reloading the Connecting with Facebook Pop Up.


I basically want to prompt for user permissions and auto connect. What code can I add.

Also I also have modified code in components/com_jfbconnect/includes/jfbconnect.js

Code:



//if (!jfbc.login.logged_in)
                //    jfbc.login.facebook_onlogin();
                //else
                //    jfbc.permissions.fetch();
                if (!jfbc.login.logged_in)
                    jfbc.login.facebook_onlogin();
                else
                {
                    jfbcJQuery(document).one("jfbc-permissions-fetched", function () {
                        location.reload(true);
                        });
                    jfbc.permissions.fetch();
                }


The above I have commented what should be there with the rest as my modification. Do you think this would affect it ?

Alex,

I posted this a while ago : https://www.sourcecoast.com/forums/jfbc … tem-plugin


I had code in the system plugin where it would detect if in the canvas then it would auto execute the click so when the site load it would prompt for permissions.
Where in the code can i detect if i am in the facebook canvas. Can you let me know what code detects in canvas and where in the plugin i could apply this to.


Ivan

Apr-09-14 14:56:09
Category: JFBConnect

I am also seeing these og:see_also tags on my site. Does anyone know what plugin is inserting them?

Mar-25-14 10:09:08
Errors when viewing user mapping in backend
Category: JFBConnect

Hi,

I just installed the latest version of JFBConnect. When I go to view usermap and I select more than 20 rows the page gets distorted. Same thing happens if i go to the last row.
Could you please check to see if there are any bugs with pagination. I am on the latest JFBCOnnect for 2.5.

  • Index
  • » Users
  • » Ivan
  • » Posts

Board Info

Board Stats
 
Total Topics:
11808
Total Polls:
0
Total Posts:
49592
Posts this week:
3
User Info
 
Total Users:
48229
Newest User:
tobhas
Members Online:
0
Guests Online:
1033

Online: 
There are no members online
Social Stream
Hide, Seek & Defuse

Handheld Electronic Game

Alex from SourceCoast is working on a new electronic game for kids called Countdown. It's a timed game of Hide & Seek with mini-games (Whack-a-Mole, Simon, etc) to complete when you find it.

Learn More About The Crowdfunding Campaign