Why do shared items not show up in Graph API notification requests - android

I am currently implementing an android application that checks a user's notifications periodically using the Graph API using the following query: /me?fields=notifications
I've noticed that whenever someone shares an item on the user's wall there is no notification returned from my request. So far I've seen this happen with sharing pictures and sharing video. I've tried using FQL and the Graph Explorer and neither one returns the notification, however on the user's facebook page it shows up.
I do have the manage_notifications permission and can see notifications of wall posts, invites to events, likes or comments on photos the user posted.
It appears that this is the same problem as: Missing items in Notifications response but that's over a year old without an answer.

Apparently Facebook updated the graph api, this is now working with no changes needed on my end.

Related

Send notifications to group of users

I have android app that includes sections. After user login he can follow a section. Inside every section users can add posts. I want when someone posts something on specific section. All followers gets notification of the post. Like what happens on Facebook groups.
I'm using OneSignal. Should I use tags? Also, I see when user clears the cache and re-login to the app. All connected tags are lost. He will not get notifications until he unfollow the section and then re-follow it again. So OneSignal.sendTags get triggered again.
What are the best solution here?
First of all , you can use a firebase solution or you can go with rabbit mq or any other messaging services , so you need to save all the devices token in you users table , and the when you trigger your function you send the notification to all the tokens of the members
you want to notify , this technique is working fine

Send notifications to user authorised to facebook in mobile for different events

Logic/Code question here.
Hello all,
I am building an social network type of Android app where specific group of people share their views. And for this , I planned to use only Facebook for everything, posting, commenting and all. The posts are posted on a page.
My problem is like this:
Suppose, a user posted a thing through the app, another user comes and interact with the post by commenting.
Now I need to send a notification to the first user that second user interacted with his/her post.
The notification should be on mobile app, not Facebook app.
Any idea, how can I solve this problem?
Any sort of help would be appreciated.
There is no simple solution for this. You may want to look for third-party solutions. Basically,
When a user logs in, send the device token and facebook user id to your server and store them in a database.
When a user makes a post, link the post id to the device token.
When a user comments, get the facebook user id of the parent post, then get the device token, then send a notification to the device token.

Anandroid app that can notify user immediately if a website is updated

How to create an android app that can notify user immediately if something on a website is updated.
Suppose I have a blogger blog like http://abcd.blogspot.com So what I want is that whenever I post a new topic on my blog that topic notification should be pushed on to every android device that has my app installed. Please explain in detail if possible And I am not able to use PHP because its a blogger blog.
Use your blogs RSS and parse the output which is located here. Its better to do this on another server application not on the client. This way you can use something like UrbanAirship when someone installed your application and send push each time new post detected by your server application.

User notifications on Facebook API for Android

Is it possible to retrieve user notifications using Facebook API for Android?
If so, what kind of information can be received?
Kindly post an example of how this is done.
If you want to receive notifications from a user:
You could also look on this question:
how can i get user notifications with the new Graph API
If you want to send notifications to a user:
Look at the Facebook Developer page: There you can find some good explinations, example codes and so on:
https://developers.facebook.com/docs/games/notifications/
If so, what kind of information can be received?
You can make you own picture in front of the notification and set your own text (look at the link above for more information)

How to send Request in android facebook 3.5 api?

I am making an android application in which I have to send request to friends of user.
I am using following link https://developers.facebook.com/docs/android/send-requests/
it is working correctly it show dialog with friends allows selecting people and sending request. but request is not received on receiver end.
Can any body help me it will be really helpful.
People can see the received request with notification only if they have the same app installed on android device and facebook application is also installed there. If you do define canvas for your app and put some content there, then request notifications will be shown in the facebook web page.
Still, even if canvas isn't defined you should see the request appears in the App Center tab.

Categories

Resources