Is it possible to track your Facebook notifications through an app other than Facebook's? I am looking to track the photos tagged of a person in facebook through an app.
-
Don't think this is possible. Notifications go to the actual FaceBook app and I don't think you will have access to that app to get the notifications from it. – Robert J. Clegg Feb 24 '15 at 05:28
1 Answers
Unfortunately, no. The Facebook sdk offers /user/notifications
as an edge through the Graph API. That, however, requires the manage_notifications
token which is unavailable to all Android, iOS, Web, and TV apps.
For your application, though, you're in luck (or at least I think you are). If you are trying to access all the photos of your user, you can use /user/photos
to retrieve all the photos that the user is tagged in. If you follow the Reference Documentation, it'll give you back 25 photos. In order to grab more, and to 'page' through the data, use the limit
and offset
parameters as follows
Bundle params = new Bundle();
params.putString("limit","400");
params.putString("offset","800");
new Request( Session.getActiveSession(),
"/me/likes",
params,
HttpRequest.GET,
new RequestCallback() {
// handle results here
}
).executeAsync();
This request should give you all the information you need to know about the photo, but be sure to check out the documentation to get a list of all the fields available.
As a side note, you can also access albums to retrieve photos that the user has posted, which will also contain tagging information.

- 471
- 3
- 7