Can I use friends pictures from their gallery after getting permission
in my application?
Not download them just keep a link/reference to selected photos
using Facebook graph API and PHP.
Sure you can - hopefully you will not do anything nasty with them :P You should make it clear to your users what your intentions are and how you plan to use their photos and for what.
Related
Curious if the PHP Facebook SDK allows me to change only my own profile picture and cover photo. From the reading I've done I'm thinking no, but I wasn't able to find any recent, direct articles.
Any help is appreciated.
Looks like you can't actually change it, but you can get half way!
Setting Facebook Cover Photo via API
"ThereĀ“s no API support for changing user profile cover, but you can upload a photo and then redirect user to: http://www.facebook.com/profile.php?preview_cover=PHOTO_ID"
I need to create a program which allows to store photos of which people has uploaded in Facebook based on the photo description. For example, I upload/post on Facebook a picture with the description "#awesomeevent" the program should be able to store this particular image into the database. Twitter has hashtags but Facebook do not any where which i can work around this ?
I was thinking of using a FQL query but unsure how to do it.
The best (and only?) way to do this imho is to include the hashtag in the message of the photos and read it from there. I would not use FQL for that, because there is no need to use it. The Graph API offers enough possibilities/connections to read photos:
https://developers.facebook.com/docs/reference/api/user/
(/me/photos, /me/photos/uploaded, /me/albums, ...)
Good Afternoon,
Is there an api method/loop which will allow me to access all of a users photos? Keep in mind I do not want tags or albums, I want all pictures. Appreciate the help.
I have tried api photos method yet it does not do what I wish.
Make sure you got the user_photos permission and make a request with graphpath me/photos. You are gonna get all photos he uploaded and is tagged in. Although these are easily removed by just checking who uploaded the image (this is included in the response JSON).
Im kind of new in facebook development, so be patient with me :)
I'm creating an app that manage the photo albums user. One of the features i'm developing needs to access the friends photos. I mean, the photos that my app user can see of his friends. How can retrieve thats albums and photos information? I have user_photos and friends_photos permission.
Any sugestion?
Thanks in advance!!
Sorry for my lame english. Is not my native language.
Sebastian
You need to make an API call, for this you can use Facebook Graph API.
Look at the following API for albums
http://developers.facebook.com/docs/reference/api/album/
This is for generic purpose, however you need to first pull all the friends from here
http://developers.facebook.com/docs/reference/api/FriendList/
To fetch the albums of a friend you also need to set permissions
http://developers.facebook.com/docs/reference/api/permissions/
check:friends_photos
You can simply fetch the album like this
https://graph.facebook.com/{userId}/albums?accessToken=something
PS. you need to pull albums of friends one by one.
References to get you started
Start with the Graph API:
developers.facebook.com/docs/reference/api/
Read up on a few more things:
http://developers.facebook.com/docs/opengraph/
http://developers.facebook.com/docs/
Use Graph explorer to test things out:
http://developers.facebook.com/tools/explorer/
Your fist app
Now in order to do anything on facebook you need to create an application. You will get an app token when you do this. Something like: 288229791195831
Your users need to Like your application in order to use it. Then you can use it to post photos, wall messages etc.
This is the URL your application could use to log in a user:
https://graph.facebook.com/oauth/authorize?client_id=288229791195831&redirect_uri=http://www.facebook.com/connect/login_success.html&type=user_agent&display=popup&scope=publish_stream,user_photos,read_stream,email
Replace your client_id with the app id you get from facebook. Scope shows the permissions this app is requesting.
Good luck!
Twitter has now rolled out a feature for a user, whereby they display the users photos in a gallery. I've looked around the Developer Docs and cant spot any way to grab the images as a feed (json/xml). Does anyone know if there is a way to do this with PHP?
URL for everyone's reference: http://twitter.com/#!/mashable/media/grid
See https://dev.twitter.com/discussions/1219