Topic-icon facebook public profile permissions

Active Subscriptions:

None
11 years 9 months ago - 11 years 9 months ago #46945 by andbal2
hi, is changed something about public profile permissions in last month? an'application i've created 2 monts ago works when clicking login with facebook. if i create a similar application today and i click login with facebook not works, i mean not save user and joomla ask me to register. facebook limited again public profile?
with login i ask to user just information not need facebook approval as described here developers.facebook.com/docs/facebook-lo...rence-public-profile

i ask: email, firstname, lastname, middlename, profilelink, sex, locale, friendcount

tx
Last edit: 11 years 9 months ago by andbal2.
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #46966 by andbal2
hi, finding in the forum i read this thread www.sourcecoast.com/forums/jfbconnect/jf...n-not-working#p46319
and i did the update to jfb 6.1.2.

now facebook login works but just imports firstnme, lastname and email; i mean (for public profile not approved by facebook) not imports sex, profilelink and locale. i have the right mapping in cb plugin. could you help me?
The topic has been locked.
Support Specialist
11 years 9 months ago #46984 by alzander
The permissions haven't changed since the end of April. Apps created on or after May 1st do have slightly more limited permissions, but even then, all the same data can be gathered... there's just more that needs to be requested of the user. JFBConnect automatically takes care of all this though.

Fields like sex, profilelink and locale should all work. Can you test with other fields and see if they import as well? It'd be helpful to know if things like current location or favorite music import as well to narrow down what may be going wrong.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #46996 by andbal2
sorry, what you mean about "test with other fields and see if they import"? you suggest me to delete existent cb fields and create them again? after this re-mapping data? tx
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #46998 by andbal2
hi, i solved in that way, just re-map fields.
sorry i have another questions:
1. in jfb 6.1 i don't have friends list option in cb fields mapping
2. as described here developers.facebook.com/docs/facebook-lo...mission-user_friends it's possible take also user_likes - Access to the list of things a person likes. how?

tx, bye
The topic has been locked.
Support Specialist
11 years 9 months ago #47007 by alzander

1. in jfb 6.1 i don't have friends list option in cb fields mapping

We've never had a "Friends" import option. With updates lately on Facebook's end, getting a list of the user's friend is even more difficult and you can only fetch a list of friends of users *that have also authenticated with your application*. You can't get a list of all friends of the user.

2. as described here developers.facebook.com/docs/fa … er_friends it's possible take also user_likes - Access to the list of things a person likes. how?

We don't have an easy way to fetch the user_likes of a user, though it can be done using some API if you want to implement it. Please note that the Likes will only be of the Facebook Pages the user has Like'd, not all content on the web that they have liked.

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

None
11 years 8 months ago #47065 by andbal2
hi, for friend list i mean the number of facebook friends. it wan an value of option in cb plugin
The topic has been locked.
Support Specialist
11 years 8 months ago #47069 by alzander
Are you talking about in the social network integration plugin from CB or a feature we used to have in JFBConnect? I don't believe we've ever had that option. With the new Graph API v2.0, it does look like an easy field to get. Are you looking to just get a total count of the user's friend to store in a field somewhere?

If so, let me know, and I can investigate what it would take to add.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 8 months ago #47141 by andbal2
yes i mean in cb plugin, please look in the screenshot the friend count option
File Attachment:


tx
The topic has been locked.
Support Specialist
11 years 8 months ago #47148 by alzander
Ahhh.. I apologize. You are definitely correct. The friend count field was removed in the most recent release due to a change Facebook made where that field was no longer available how we were fetching it.

To restore that functionality, you'll need to edit the /components/com_jfbconnect/libraries/profile/facebook.php file. Around line 26, you'll see:
//                'friend_count' => 'User - Friend Count',
Change that to:
'friends.summary.total_count' => 'User - Friend Count',
Then, around line 67, you'll see:
foreach ($fields as $field)
        {
            if (strpos($field, "location") !== false)
                $perms[] = "user_location";
Modify that like below, adding the new request for friend information:
foreach ($fields as $field)
        {
            if (strpos($field, "friends") !== false)
                $perms[] = "user_friends";
            if (strpos($field, "location") !== false)
                $perms[] = "user_location";
As you probably can guess, to get the user's friend count, you now need to request an additional permission from Facebook for 'user_friends'.

I hope that helps, but if you have any questions, just let me know.

Thanks,
Alex
The topic has been locked.