I develop ios app with chats (it's not game). I have a task to invite all fb friends(not only who using my app) to a defined chat in my app. So for do this I need get all friend list, choose friens, send them notification(post on wall or message) and save fb friiend's id to my server. What I should use for implemetation this all things?
Facebook iOS sdk has all the features you need. You can see the friend list of the user logged in using Facebook session, etc more info at https://developers.facebook.com/docs/ios/sample-apps
Related
I am developing an app, and users will be able to log in with Facebook. They only can start using the app if a minimum of their Facebook friend are already using the app. If not, they have to wait until the minimum required number of friend use the app in order to use it. I want to allow them to invite their Facebook friends to join.
Also, I would like to know how I can make it happen?
Do I HAVE TO create a facebook canvas or is there any other ways I can make it works?
Thank you for your help.
https://developers.facebook.com/docs/apps/faq#invite_to_app
Games on Canvas: App Request
Other Apps/Games: Send Dialog or Message Dialog
You can't access invitable_friends without enabling facebook canvas in your app's settings, but maybe app requests safisfy your needs? It will list friends (user needs to authorise reading friends list by app) and allow user to send them a notification in their mobile facebook app which will open an app or take user to app's page in App Store if they haven't installed your app yet.
Remember to enable deep linking, facebook SSO and provide App Store ID in platform settings for this work.
https://developers.facebook.com/docs/games/requests/
I am writing an iOS app and authentication is handled by Facebook SDK. I want to get an notification in my App when a friend of mine starts using the app. How do I retrieve this information from API ?
You can authorize users with user_friends, use /me/friends to get all the friends who authorized the App too and then send a message to all the friends in the list if the user is new.
According to latest Facebook SDK (V 2.0+), "This will only return any friends who have used (via Facebook Login) the app making the request." But my requirement is sending private message to my facebook friends to let them know that I am using this particular app. Is there any way to achieve this feature. Any help is appreciated.
Since Graph API v2.0, /me/friends returns a person's friends who also use the app.
You can use /me/invitable_friends. But /me/invitable_friends only available to apps classified as Games
more info : https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends
This article explains exactly how to invite friends (in a Game or App): https://developers.facebook.com/docs/apps/faq#invite_to_app
Games on Facebook Canvas (apps.facebook.com/yournamespace): Invite Dialog and invitable_friends
Any other App: Message and Send Dialogs (depending on platform)
In your case (iOS platform), you can only use the Message Dialog.
I have an iOS social app, which used Facebook to login. Now I have access to the friends list. Is there a way to send a request to a Facebook friend (who is currently not using app) to install my App. What I mean to say how can you advertise an app using Facebook circle.
You can use FBWebDialogs, there's a presentRequestsDialogModallyWithSession method which does what you need.
You can also see this tutorial - https://developers.facebook.com/docs/ios/send-requests-using-ios-sdk/
I've been searching this question, and I haven't been able to find anything that works. I have an iPhone app that allows users to link their Facebook account. It would look something like this:
Once a user has successfully linked to FB, I want to present them with a list of their FB friends and an option to invite selected friends.
FB Friend 1........... Invite
FB Friend 2........... Invite
...
FB Friend 1000..... Invite
Basically, I want to send a message to FB friends that says something like "Check out this app". I'm pretty sure this has to go to either their notifications or wall and cannot go as a FB message, but I can't figure out how to do it.
Also, I don't need to select a group of friends to invite -- this can be done one at a time. So it would look like this:
FB Friend 1........... invited
FB Friend 2........... Invite
...
FB Friend 1000..... Invite
Thanks so much for any help you can provide.
Unfortunately there isn't anything in the iOS SDK that presents the apprequests dialog, and a user has to have installed/approved your application before you can send them application notifications via a POST request...
Requests are a great way to enable users to invite their friends,
accept a gift or help them complete a mission in your app. There are
now two types of requests that can be sent from an app:
User-generated requests: These requests are confirmed by a user’s
explicit action on a request dialog. These requests update the
bookmark count for the recipient. You send requests by using the
recently launched Request Dialog.
App-generated requests: These
requests can be initiated and sent only to users who have authorized
your app. Developers can send these requests using the Graph API. Use
these requests to update the bookmark count to encourage a user to
re-engage in the app (e.g., your friend finished her move in a game
and it’s now your turn).
The only way to get this is via Facebook's Requests 2.0 dialog (which is not currently available to the Facebook iOS SDK):
http://developers.facebook.com/blog/post/453
See more here in this related question...
Sending application requests that appear in the left column on Facebook home page?