Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6897501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:10:35+00:00 2026-05-27T07:10:35+00:00

I have the Facebook SDK for Android working in my app. I can’t seem

  • 0

I have the Facebook SDK for Android working in my app. I can’t seem to find any examples or documentation on how to use the SDK code to get Notifications. I have the permission “manage_notifications” set and I am assuming that I need to use the .request() method, but the graphPath parameter eludes me.

Does anyone have an example of how to get the Facebook notifications using the Facebook SDK for Android?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:10:36+00:00Added an answer on May 27, 2026 at 7:10 am

    While the other answers are helpfull, what I was looking for was an example of the Android Code. I have figured it out though and have posted it here. The code below gets the logged in/authenticated users notifications.

    //Initialze your Facebook object, etc.
    Facebook _facebook = ...
    ...
    Bundle bundle = new Bundle();
    bundle.putString(Facebook.TOKEN, _accessToken);
    String result = _facebook.request("me/notifications", bundle, "GET");
    

    Then you will need to parse the string “result”. It’s in json format. Here is an example of what that will look like:

    JSONObject jsonObjectResults = new JSONObject(result);
    JSONArray jsonNotificationDataArray = jsonObjectResults.getJSONArray("data");
    for (int i=0;i<jsonNotificationDataArray.length();i++)
    {
        JSONObject jsonNotificationData = jsonNotificationDataArray.getJSONObject(i);
        if (_debug) Log.v("Title: " + jsonNotificationData.getString("title"));
    }
    

    I hope that other people find this useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the Facebook SDK for Android used in my app. I can't seem
I have the demo facebook app and without any modification this is the code:
I am using the official Facebook SDK for Android in my app. I have
I have Phonegap's Facebook plugin working perfectly within my Android app. This plugin uses
I have a problem that I want to use Facebook SDK in Android but
I have a Python Facebook project hosted on Google App Engine and use the
In my Android app, I log in using the Facebook SDK and display posts
I have an issue with SSO using the Facebook SDK for Android. The problem
how to use Action_view intent to post on facebook wall in android? I have
Do I have to install facebook.apk on my android device before try to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.