guys!
Is there any possible way to get user cover photo using app-scoped id? Facebook graph-api accepts only actual facebook id.
There is no way to get a cover photo without using an access token belonging to that application.
Only profile pictures are publicly accessible from an app scoped ID.
Related
I need to retrieve all user profile images by user id and access token using Facebook Graph API.
I can take all user's albums in this way: {user-id}/albums?fields=type
In this list I can see an album with type = profile.
Is possible to change my request to filter directly this album?
Are there an others methods to take all user's profile images (for example using a single FB request)
You canĀ“t filter, you have to get all albums and browse through them in your code to find the profile album. After that, you just need to make another API call to /{album-id}/photos to get access to the photos.
I am using facebook to login to my website. The website does not need any information about the facebook user's friends' list. I am interested only in the user's general information.
https://developers.facebook.com/docs/reference/login/public-profile-and-friend-list/ shows the friend list also as the minimum information shared by Facebook.
Hence wanted to check if there is any way to restrict the user friend list information from being passed on from facebook to my application?
No, when a user authorize an application the minimum data shared is it's basic information and friend list.
Unfortunately you cannot change this.
Official documentation:
When someone connects with an app using Facebook Login, the app can
access their public profile and friend list, the pieces of information
that are visible to everyone. Each other piece of information that
someone adds to their Facebook profile is secured behind permissions.
Source: Facebook
I can get the details of the app using app id and Graph API.
e.g https://graph.facebook.com/2439131959/insights/application_active_users?since=1329724800&until=1329984000
However, is there any way to get the list of apps and their id so that I can use above query with access-token to get the app info?
Facebook User Object has the connection object called "accounts". Using this can get the facebook apps and pages owned by the current user. In order get these details via graph api, you need "manage_pages" permissions. This will return array of objects containing account name, access_token, category and id.
https://graph.facebook.com/me/accounts
checkout fb documentation
Can anyone tell me if there are any fields in the FB Graph that list a users twitter ID if they've linked it to Facebook.
No, there's no place in a Facebook profile to provide that information, and no way to retrieve it either - you'd have to get your user to log in to both Facebook and Twitter using their respective APIs
Does the Facebook API return the UNIQUE ID of photos I upload to FB through my app?
There are data I would like to keep track of of the photos which Facebook doesn't but I want to present in my app.
Thanks
Each photo was specified with a unique "identity", This identity is specified by the user's id and photo's id
A typical url of a photo looks like this:
http://www.facebook.com/photo.php?fbid=xxxxxxxx&set=a.xxxxxx.xxxxx.xxxxxxxx&type=3
That's a preview mode, in order to access a user's photos you must have also the privileges to access it
Also I know that each photo on fb has a permalink too
Looking like :http://a2.sphotos.ak.fbcdn.net/hphotos-ak-snc7/s720x720/xxxx_10150317692149803_5524802_7778361_2055733189_n.jpg This is also accessible though fb's sdk but also is under user's privileges
I believe it does, but you will most likely need the correct photo privilege to retrieve it. Also if your app is posting the photo. It should return the id of the newly created picture
https://developers.facebook.com/blog/post/498/
Yes you can do it. When your application uploads any photo of facebook, facebook creates a album with your application name. Now you can grab all photos which have aid of your application. For more you can check from here
Yes, the id is unique. An id also tells us the type of object based on where it is within our global block of ids (FBIDs).