Fetching facebook notifications in android app - android

I am creating an android application for fetching Facebook notifications. Here, once the user is logged in, I want to fetch the user's Facebook notifications and display them in my application.
How is this possible?
I saw a sample code in developers.facebook.com, but it requires manage_notifications permission. I am confused about adding that permission.
When i run the application, I got this message in my log:
an active access token must be used to query information about the current user.
How to fix this ?

Related

Getting Facebook Notification in android app

I'm trying to develop an app to get my Facebook and twitter notification simultaneously. I can authenticate using Facebook SDK 4.18 and Fabric API for twitter.I can update status and tweet simultaneously. All the reference I've searched so far, some of them are not up to date.
Here (https://developers.facebook.com/docs/graph-api/reference/user/notifications) it is said that(regarding notification)
*
Reading
You can't perform this operation on this endpoint.
*
Will it not be possible to get Facebook notification?
I understand the reason why I can't get notification. I've used Facebook SDK for making a thirdparty app. If Facebook give me permission to read the notifications, it becomes a privacy issue. So I can only post status on behalf of the app but can't get notifications.

Parse-Sinch integration unable to send messages to users created using Parse's data browser

I am trying to integrate Parse with Sinch using the source code in Github. Everything works fine as long as the user is signed up using the Android API ParseUser.signUpInBackground(). However when I create a Parse user using Parse's website, I am unable to send messages to the newly created user. I am getting an error "User does not exist". This happens too if the user has signed up using Facebook and Twitter. I also observed that when you do a login to the newly created user then the issue is gone.
This is because sinch doesnt know about that user yet, you need to login in an app and start the client once so sinch know where to send messages and incoming call notifications.

Parse push notification android device token not saved in some cases

I am using parse as my app back-end service provider. My app has really important feature of Push notification.
Parse is not saving the device token in some cases. Mostly when user is installing the app from America/Los_Angeles region.
Is this Parse.com sdk integration problem or Google is not sending device token in some region? How can i fix this issue?
I've just ran a quick check on our Parse backend and found that there are also missing device tokens in our database, too.
I think you should not send push notifications based on device token, but based on user on that device.
To do that, first add a new field in Installations table called user. If your app requires explicit login from user, then when user logs in, update the installation with that user's ID. If it is implicit (registers upon installation so App is ready to go as soon as user opens the app), then just associate that user in the same manner on app install.
In the end, you are most likely to want to send your notifications to your user rather than a specific device. This also makes data transferring a lot easier.
This issue was sometimes observed due to failure to get the token from Google. You should check the device token availability, if you don't get it, you should try it again after some time from your app.

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.

Changing the permission for android facebook app

I have a Facebook app which was working fine till some time back. From past few days i am not able to get the notifications. i get a response saying permission is required. I wonder i was able to get the notifications earlier,if i didn't have the permissions. Is it that the facebook has changed their api. I am using the rest api for notifications.

Categories

Resources