In my app if person A invites B using app invite (As per latest app invite https://developers.facebook.com/docs/app-invites) and when B joins app using Facebook login certain action is needed to take. As per latest app invite I could not see if I can get Facebook id of recipient. In old app invite (using FBDialog) it was there in response. My target is if I get emailid or facebook id of friends invited using Facebook App Invite then I can keep track of rest from logic in app.
Can any one please suggest if is there any way to achieve this ?
Use this Link to access details , u can get Profile id easily using Graph API of facebook. before that you can get the access tokens after login you can get the Profile id.
Related
I am making a calendar application and I want to be able to display the events that are linked to my Facebook account. Now, I know that I need the Facebook SDK for that and I already installed it, but I don't know what the next step is..
first you need to access facebook user information after accessing these informations you can easily link them to your calender app
Check these links for taking image of user profile similarly u need to get all details of Users.
Image of Logged User...
Friends Birthday list...
Integrating facebook in your Application :
Github for Facebook.
Include Graph API for Facebook to access user information
use graph API and use
211600268?fields=id,events,friends.fields(events)
the id used above should be replaced by your own facebook id
I am little bit confused about new api and app review steps of facebook api. I need to have facebook login and get the list of friends of a logged in user and sent invitation to use app for selected friends. What are the steps i should follow it? do i need to submit my app for review in facebook?
You canĀ“t get all the friends of a user anymore, at least not for an Android App. You only get the friends who authorized the App too.
There is invitable_friends for inviting friends, but:
The Invitable Friends API is only available to apps classified as Games, which also have a Canvas presence. This API is not available in v1.0. It may be called by mobile games as long as they also have a Canvas presence.
You may want to read this too: https://developers.facebook.com/docs/apps/faq#invite_to_app
Facebook change there api police. if you do not get Friends to send invitation. if you want to do that then you need to submit your app for review by facebook team but if your app is Game then you able to do that.
But another way, you can do that, You can do it via facebook web-dialog to send invitation.
Thanks
I am developing an API that will be used solely for a mobile app, the mobile app allows users to log in via facebook and grant the app permission to access the users facebook friends list and post on their wall.
However I have some confusion as to where I integrate into the API and where the app developers integrate. I assume the login with facebook part is done by the app developers, who then pass the facebook access token into the API for it to store/retrieve friend list and make posts on the users wall.
Am I correct in assuming this? And if so can I test my part the implementation by retrieving friends list without having the app developers do their part first?
Thanks
First you have to register your app with your facebook id in developer.facebook.com then you will get the app id which you have to put into facebook login that generate access token for the process
To make any call to the Facebook API you need an app ID. after receiving it, you can make calls to the API from your controller using the Facebook php SDK
My app logs in via facebook and all friends of facebook user logged is listed to be invited to download my app. I want guests to be advised via facebook through a notification.
I've done the test via "Graph Api Explore" as follows:
POST/{recipient_userid}/notifications? access_token = ... & template = John is inviting you to learn a new app. & href = ... "
but I noticed that the notification comes only to those who already have my application installed.
{return: "(#200) Cannot send notifications to a user who has not installed the app"}
how do I send notifications for facebook users that still do not have my application installed?
thks!
Because notifications are not meant to be used to invite friends. They're used to notify your app users of events happening in the app (e.g. if their high score was beaten in a game for example).
If you want to let your user invite friends to also use the app, I'd suggest you use the Request & Invite features of the Facebook SDK:
https://developers.facebook.com/docs/tutorials/ios-sdk-games/requests/
That tutorial shows you how your user can select a list of friends to invite and then write a message that will accompany the invitation.
My app has an instant messaging feature. So it has a contact list.. I want to populate the contact list to help get my user started with some friends..
After asking permission I will:
1) Search the local contact database, send the phone numbers to my server and check for other accounts using my application that have the same phone number.
2) Ask them if they want to also import their facebook friends. At which point I suppose I will ask them for their username and password for facebook, log in to the Graph API and request their list of friends..
My question is, once I am iterating the list of friends from my user's facebook friends list, how can I link their facebook friend ID (or whatever identifier Facebook gives me) to some other ID in my app?
Will I see the email of all my friends users (after research, it looks like not)? Will I just get a numeric Facebook ID? If so, then how am I to harvest facebook IDs from all my users that have linked their account to facebook in my app?
I suspect this feature has been implement by other third party developers. So I'm looking for the strategy to identify and link my app users, to facebook accounts, and then iterate my app users friends list to find common users.
The question I am answering from a user perspective "Which of my facebook friends are already using this app, named XYZ on android"
You can store a user's Facebook ID alongside their other user information for your app, then match on the retrieved IDs from a Graph API /friends call. This way, you'll be able to see which friends have also linked the app to their Facebook account. You won't be able to fetch email addresses for a user's friends using the API.