Is it possible for a website to have facebook chat integrated into it, but only show the friends which are on the same site/page?
Yes
use facebook graph protocol to get friend of the user
and the user who in the page in already in your databse
and joining between the two by the uid
im sorry fvor my poor english
Related
What I'm trying to do is Authorize my Facebook APP to manage user profile and get their list of conversations and list it in my site and also they can reply on the conversations through my site is this possible to do?
If not possible do you have any suggestions.
Thank you in advance happy coding
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.
I am developing a web site which uses facebook php sdk to login user and i want to send an invitation to join the site to a facebook friend he interacts with in my site. I know the fb user id he interacts so i want to send an invitations to him via facebook php sdk.
Any ideas or sample code? I don't want the user to select the user he invites i already know who is the user i should dend the request.
Thank you a lot!
For notifying the friend of the user to ask him to interact with your website you can utilize the apprequest.
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.
i have a facebook app, in wich the administrator of the app needs a report of the users registered to this app and one of the data i need is to get how many friends does a user registered to my app has, i was trying with fql using a query like this
$facebook->api_client->fql_query("select uid2 from friend where uid1=$userId");
but is not working, is there any other way to achieve this?
I remember the facebook API Documentation to be rather sparse with this sort of thing, but maybe you want to look into the facebook Graph API. From there, you can get registered users of your application.
Facebook 'Friends.getAppUsers' using Graph API
http://developers.facebook.com/docs/api
==EDIT==
Facebook Graph API pattern:
https://graph.facebook.com/ID/CONNECTION_TYPE
If you want all the friend data from any user, you can use
https://graph.facebook.com/USER_ID/friends