I have an application on Facebook and I want to remove user's data from my server when he/she removes my application from here. I was looking for such api on Facebook Technical Documentation but I did not find anything.
Facebook can send your app a notification when a user removes the app, it's called the Deauthorization Callback and sends you the user ID so you know the user removed your app
Related
I have created a Facebook App and published it today with Canvas Web platform.
The users can authorize the application and I can send notifications to them using the Facebook API that appear on their Facebook account on the Web.
However, it works with the developer user but not with regular users. For regular users the API call to send notifications returns this error response:
{"error":{"message":"(#200) Your app is not approved for content update notification at this time", "type":"OAuthException","code":200,"fbtrace_id":"GPVF+lOxzgp"}}
The application is published and is live. It is for publishing landing pages with videos, when when the user signs up using Facebook, he will get a notification when a new page with a video is published, so he can watch the video inside the Facebook canvas iframe.
What do I need to do to have new content notification approved? I just asked for email and profile permissions and the documentation says it does not need additional permissions to send notifications. So I have not items to submit for review.
I am using this API call described here:
https://developers.facebook.com/docs/games/services/appnotifications
It seems I was doing a mistake which as to pass a type parameter set to the content_update value. Removing that parameter solved the problem.
My company is developing a web app, we are looking to integrate this to Facebook, basically our web app provide some reports. Now some of the clients want to show some information in Facebook. Even though, we dont have any experience developing for Facebook we opened a developer account and we selected build a web-app(We are thinking to embed our web-app in Facebook).
So our question is:
how we could store an ID of our client once he install the app in Facebook?
does Facebook store this ID and every time a visitor in our client's Facebook app enters to the app in Facebook, Facebook sends this ID to our website to recognize which client is it?
Thanks for any inside on it.
Your question is very broad. I would advise to start reading the documentation on Facebook Login to get an idea about how it works.
In general, when an user logs in using Facebook, you will receive an App Scoped User ID. That is an ID that is unique and identifies the user for your app (note: for the same user, each app gets a different ASUID). You can use this ID to keep track of all your users.
Facebook javascript v2.0 informs app specific user id. But what will happen if any old user uninstall an application and again re install that application after changing the application version?
Will they have new userid?
He will get the same ID, so you can still identify returning users. I just tested it with an App to be sure: Authorize user, call /me, remove App, authorize user again, call /me > same ID.
Edit: We just discussed this in another thread: Facebook API 2.1 - About Invite Friends And App-scoped User IDs
It seems that the Scoped ID may change if the user deauthorized your App and authorizes it after a long time. But you would have to delete the user data anyway if the user does not use the App for a long time - data privacy and stuff.
I am a iPhone application developer. I don't know how to send an "link" to a selected user's inbox in Facebook from my Facebook account.
You can't send messages using a Facebook API from the backend, but you can do through JS SDK or redirecting user to facebook url as per this link
FYI: Send Message
I don't exactly know if I understood your question, but: If you want to provide a link that a user follows in order to go to her/his Facebook inbox, you can use the URL scheme fb://mailbox (provided that she/he has the Facebook app installed)
As #Venu wrote, the api does not allow apps to send messages on the behalf of the user, only with the Send Dialog which you should be able to open using the iOS sdk Dialog.
Another approach you can use is the Chat API with which you can send messages on the behalf of the user, it requires the xmpp_login permission and you to implement an xmpp client.
I have a PHP iFrame application that needs to clean up data when it is uninstalled from the user's fan page. Is there a URL callback which happens when the application is uninstalled?
App Deauthorization
When a user of your app removes it in
the App Dashboard or blocks the app in
the News Feed, your app can be
notified by specifying a Deauthorize
Callback URL in the Developer App.
During app removal we will send an
HTTP POST request containing a single
parameter, signed_request, which
contains the user id (UID) of the user
that just removed your app. You will
not receive an user access token in
this request and all existing user
access tokens will be automatically
expired.