How to send notifications on Facebook when User is offline? - facebook

I'm making an app that will integrate with the system I've got.
The idea is that in some events that occur within my system, the app can send notifications to users via Facebook.
That is, my app does not necessarily have to have something inside Facebook, the initial idea was only notify the user by Facebook about some event in my system, and when the user clicks on the notification, it would be redirected to my system.
Is this possible? Cause I'm having trouble keeping the Access Token, because those events will occur mostly when the user is offline, and if Access Token I have are invalid for any reason, I will have to get a new one because there is no as the user "re-authorize" my app because it would not be online at the time of the event.

Related

Request and Approval from user

I'm developing and app using flutter and firebase as the backend. I've got to the point where the current user can fetch the data of another user.
Now I want to impliment a function where at the click of a button, the current user sends a request to the the other user(something like a friend request). And also the current user can cancel the request. The the other user will then acdept the request or reject. Can anyone help me please.
I tried to find out from YouTube but all I got was sending notification to devices.

Using Facebook publish_actions on a live event and getting the app reviewed

I want to create a Facebook app to be used in live events (ie: concerts, conferences, etc).
So the guests would enroll to the event connecting with Facebook Login and asking the publish_actions permission.
The guest will have an Access Card (RFID chip) that identifies himself and links in our database to his Facebook Access token.
Then, during the event, I would like that some actions made by the guests in the event to trigger some actions on Facebook, this actions will be triggered by different applications that communicate with our servers, our servers will comunicate with Facebook API to trigger actions on Facebook.
So when the guest does check in at the event, his Access Card is scanned by the event staff, and then should automatically post a message on his timeline indicating that he is at that event, sharing a link with more details about that event.
We also want to have a physical Photo Booth where the guest has his Access Card scanned, and then takes a picture that should be automatically posted on his timeline too.
So this is not the typical Facebook app flow, as the content is posted automatically by actions made by the user, but managed by our software instead of actions directly triggered by the user himself.
I'm not sure if this kind of application is allowed on Facebook and if it's allowed, how would the review process be done, as this can't be tested using a website or phone app.
Did someone make something similar or knows the best approach in getting this approved on Facebook?
Thank you!
The user MUST login with Facebook and authorize your App. People have tried those things with a specific device where people could login, but Facebook detects multiple logins on one device and may block your App. So the only way is to let people use their own device/smartphone to authorize your App. For example, you could offer them a QR tag with a link to the login flow.
The problem with authorizing before the event and storing a Token is that an Extended User Token is valid for 60 days. So if a user enrolls and the event is 61 days later, the Access Token will not work anymore - unless the User refreshes the Token by visiting your App. So before letting him do this before the event, you can just as well let him authorize the App at the event date.
A specific App for the event is surely the safest way, of course.

Facebook sending one time notification

One of the core functions of an App i have been writing, is the ability to send someone a notification. Not from a user, but from the App.
I have successfully managed to send notifications to registered users of my app, that all works like a charm.
I also have the facebook API invitations working so users can invite their friends to use the app.
However, as opposed to most games, where two people use an app together (like songpop, etc), my App should not send notifications from a user that has been using the App. The user should not be known to the person that receives the notification. The initiative for sending a notification lies with the user though.
Documentation on this subject is quite scattered, and on one website it is explained that this functionality is available, while other sites say the opposite.
Is it possible, in any way, that my app can send a one time notification of ANY kind to a facebook user that has not yet authorized my app?
Edit:
Basically, the functionality i am looking for is that user A initiates a notification/message to user B (who is in his friends list), but User A stays anonymous to user B.
You cannot send notifications to users who have not authorized your app. The documenation is quite clear on this:
Apps can send notifications to any existing user that has authorized the app.

Does facebook notify to an app when app user changes his/her password?

Does facebook notify to an app when app user changes his/her password?
I found some related post How to handle the scenario "access_token changes when user changes facebook password".
But what I want to know is instead of knowing due to error messages, Does facebook makes notification to an app as soon as user changes his/her password?
Something similar to deregistration as Facebook indeed makes notification when user deregisters an app.
I can't find related info on facebook developers site.
Thanks ahead.
no.. they do not notify you of a password change. Error handling is the correct way to deal with this issue.

How to hide the facebook authorization dialog on iPhone?

I'm implementing facebook connect for my iPhone app. The current facebook SDK would keep you logged in unless you log out explicitly, which is fine with me as stay logged in is actually the requirement. However, I don't want the users to go press the log in button if they never logged out. In this case, I won't be able to grab the facebook object, which I'll need in other parts of my app. So I was planning to simulate the log in event anyways, but that led me to another problem: even though permissions are granted to my facebook app before, it will still pop up the authorization dialog to my users saying they have granted permissions to my app. My question is, how do I hide this? Or, is there a way that I can grab the valid facebook object without calling authorize on my facebook object when my app is restarted and the user stayed logged in?
Any suggestion would be appreciated.
You could redirect the user to https://www.facebook.com/login.php?api_key=<YOUR_APP_ID>. (This is the URL that the PHP Facebook SDK returns when you call getLoginUrl()).This will avoid the dialog and still allow users to authorize your app.