Topic-icon How to access FB users photos

Active Subscriptions:

None
9 years 7 months ago - 9 years 7 months ago #47633 by pdparisi
Is there any way for users to get access to their FB photos and use them on my Joomla site?

Thanks,
Paul

Update: I just found www.sourcecoast.com/jfbconnect/docs/gene...ghlight=WyJncmFwaCJd which hints at what I want to do. Do you have any or know of any sample code for this?
Last edit: 9 years 7 months ago by pdparisi.
The topic has been locked.
Support Specialist
9 years 7 months ago #47648 by alzander
First, I made a quick update to that page to reflect the recommended method for making Graph API calls.

As for the call, it should just be something like:
$photos = $jfbcLibrary->api('me/albums');
You'd need to parse out the entire response to fetch or do something with those photos. You'd also need to add the user_photos permission to the extra permissions requested in the Configuration -> Facebook tab of JFBConnect.

To test further, I'd recommend getting to know the Facebook Explorer tool, where you can make API calls and see the responses:
developers.facebook.com/tools/explorer

For more information on the Albums object, see:
developers.facebook.com/docs/graph-api/r...ce/v2.1/user/albums/

I hope that all helps get you started. Definitely let us know anything great you come up with.

Thanks,
Alex
The topic has been locked.