This is a not exactly a technical question - sorry in advance .
I have a social web app on Facebook and I want to give my app's users the ability to chat between themselves (exactly the way facebook chat looks). As I see it here are my options :
1 : Regarding the Facebook Chat API http://developers.facebook.com/docs/chat/ it is not clear to me whether this works only for a user's Facebook friends or will I have the ability to let non friends chat too (it is very important since 99% of my users aren't supposed to be Facebook friends). I read it a few times and it seems that this service is only for a Facebook user and his Facebook friends , but maybe I am wrong ?
2 : If I am right and Facebook Chat API is only for friends , what is an easy and safe way to implement a simple chat between 2 users myself? (I am not expecting millions of users on my app so it's not out of the question for my app to implement a chat).
Per Send message to a non-friend facebook user?, you cannot send chat messages via the API between Facebook users that are not connected.
Related
Me and my friends are frequently using a Facebook group chat conversation. I'm building a web app that allows them to login with Facebook and do some silly stuff. Is there any way I can add that specific Facebook conversation so they can chat while on the website just like they would on facebook? I checked the API but didn't really find any references to this
Has anyone done stuff like this?
The Chat API is deprecated, it is impossible to do that.
https://developers.facebook.com/docs/chat
I implemented a custom friends selector to send app invite requests for my website to a user's FB friends. But that show no of limitations, first that invitation may be sent to at max 50 people. I have seen games on FB sending app invite requests to user's all friends, wont that same kind of invite work for my website ?
Secondly Using the requests dialog with friend selector, there is no way to select all friends for invite. How could I make it better towards sending app invites to user's all friends ?
At some places in the FB devlopers docs, they mention explicity games & apps on facebook. If I am a website with a FB canvas page as well. Can I use the services availble for games on facebook? (Is it Legal ?)
App requests are for games, not for sharing a website.
The only serious (and not spammy) way to share a website on Facebook is to use the Send or Share Dialogs:
https://developers.facebook.com/docs/sharing/reference/send-dialog
https://developers.facebook.com/docs/web/share
You may want to read this too: https://developers.facebook.com/docs/apps/faq#invite_to_app
i am building a website with Facebook login. is it possible to send a post to my friends time line or notification to my friends using graph API. i want to build invite Facebook friends to my website. can some one help me on this
Posting to the timeline of a friend was remove a long time ago, because it´s considered spam in most cases.
Notifications cannot be sent to friends either, luckily ;)
There are "App Requests", but they are only allowed for games on facebook.com and not for external websites.
The best (and easiest) way for you is to use one of the Social Plugins:
https://developers.facebook.com/docs/plugins/send-button
https://developers.facebook.com/docs/plugins/share-button
https://developers.facebook.com/docs/plugins/like-button
If I create a browser based Facebook app is it possible to talk, using Facebook chat, with the users that use my app? Is there any kind of users list that used the app like the normal friends list?
No, you are unable to do this. The only way would be to friend the users and then use the chat. Technically your app is not sentient and therefore unable to "chat". An alternative for you might be to request the users email address from permissions and then contact them using this.
For an app that allows user to login in with Facebook, and will support scenario where friends can be involved, should the app automatically setup the connection within the app's context? Such that for user A and B who are friends on facebook, and both logged in the app with their Facebook account, the app will automatically treat them as friends in the app's social graph.
It depends on your apps nature.
For example on Foursquare, if one of your friend started to use the Foursquare through facebook, they send you a notification stating that
Ohhh! Looks like your Facebook Friend XXX is on Foursquare. Friend
them?
and another app DrawMyThing, automatically connect you with your friend and involve your friend in your activity automatically.
So what important is the nature of your app.