I'm having a rare but important issue with facebook's notification API. The short story is that a user can request to be notified via Facebook when a specific event occurs. A task is scheduled to periodically check users' notification requests and send each user a notification if the event has occurred. At least one user is not receiving these notifications ever. This is what I know:
Facebook's response for the notifications that have not arrived was always { success: true }.
The notifications are sent by a facebook app, not by a facebook user.
I've tested several other facebook accounts, all of which receive the notifications just fine.
The account that does not receive the notifications was viewed on desktop (I'm aware that the notifications are not visible on mobile).
The account that does not receive the notifications has the notifications setting enabled for our app.
The notifications were sent to the correct app scoped user ID.
Is there anything I'm missing? I know the notifications API is still in beta, could this be related to a bug?
Related
How can i subscribe facebook webhook event when customer comment something to my page post , i try to subscibe page/feed but can't receive any webhook into my server.
Only live and approved apps will receive Page feed events. Therefore you need to submit your app for review (manage_pages permission). After your app was approved you can switch it to live mode and you'll receive the events you subscribed to at your callback URL.
I've been trying to setup a subscription to a page I own on Facebook using an App I've been using for many years (and this used to work for subscriptions to another Page).
Webhooks are setup, and a subscription has been created for 'conversations' to post back to a url on our server. When I test this through the webhooks page I can see the request come through on the server.
The only step that seemed to be missing was subscribing the page to the app itself.
However, I have now done this by issuing a POST request through the Graph Explorer directly to [page_id]/subscribed_apps. This returns true. When doing this however it requires a Page Access Token and gives me the Facebook authorization popup with a message saying:
"Submit for Login Review - Some of the permissions below have not been approved for use by Facebook."
I've worked out it means the 'manage_pages' permission.
If I click "OK" it goes through (presumably because the user I am authorizing as is a page admin?).
When I do a GET request to the same endpoint ([page_id]/subscribed_apps) I can see my App listed.
However, when a conversation on the page is updated (comment or new post) I don't receive a notification on the server.
Could this be because the permission isn't approved by Facebook, despite the fact that it shows as a subscribed App? I definitely didn't have to go through this before as the same App is live listening on notifications from another page without that permission granted, but I'm questioning whether something has since changed in the API.
Unfortunately this project goes live tomorrow so I don't have time to go through the Facebook review process...
Thanks for your help!
EDIT: I just attempted to subscribe to the description and/or mission fields on the page and edited these as the page owner and the notification came through instantly via the same webhooks subscription... which makes this even more confusing as it only seems to be failing for "conversations" eg: new posts/comments.
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.
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.
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.