Topic-icon Can't get likes of some users

Active Subscriptions:

None
12 years 3 months ago - 12 years 3 months ago #41306 by Tin
The plugin fails to retrieve the likes of some users, i am using this:

1. $jfbcLibrary = JFBConnectFacebookLibrary::getInstance();

2. $likes = $jfbcLibrary->api("/me/likes");

Please help
Last edit: 12 years 3 months ago by Tin.
The topic has been locked.
Support Specialist
12 years 3 months ago #41335 by alzander
Tin,
You can abbreviate that code, slightly, like:
$likes = JFBCFactory::provider('facebook')->api("/me/likes");
That's the recommended way in JFBConnect v5.2+ as the older getInstance method will be removed at some point.

Beyond that, you need to make sure you are requesting the user_likes permission from your users to be able to fetch their Likes. JFBConnect won't request that scope by default. You'll need to add it in the Configuration -> Facebook area for extra permissions to request from all users.

I hope that helps,
Alex
The topic has been locked.