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 6383615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:40:18+00:00 2026-05-25T02:40:18+00:00

Since notifications are not available in the Facebook Graph API, I am using FQL

  • 0

Since notifications are not available in the Facebook Graph API, I am using FQL to retrieve them, as detailed at https://developers.facebook.com/docs/reference/fql/notification/.

What I would like to do is use the information returned to fetch the “source object”. So if the notification is “Bob commented on your status”, I want to find that status object – and if Bob comments on my Note, or posts to the Wall for my Event, etc.

notification_id, sender_id and recipient_id alone don’t seem to be enough information to achieve this. The href field is tantalisingly close – it’ll return a link that a user can click on to be taken to the appropriate page, but that doesn’t look like much help to me as the URL format varies wildly between “source object” types. I can’t find a reliable way to turn href into a parameter I can pass to the Graph API.

So, if what I want to do is possible, what’s the best way to do it?

My thoughts:

  1. Is there a way to give the “user-friendly” href to an API and have it return the appropriate Graph API results (or have it return the appropriate Graph API URL)?

  2. Is there another way the information returned by an FQL ‘notification’ query can be used or combined to make a proper Graph API URL?

  3. Is there another way of retrieving notifications that will give me what I want?

I’m using PHP and Facebook’s PHP SDK, though this doesn’t look like a PHP-specific issue.

Thanks in advance!

  • 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-25T02:40:19+00:00Added an answer on May 25, 2026 at 2:40 am

    You can get object_id, object_type from the notification table and use that to fetch the original post. Sorry, this wasn’t documented in the ‘notification’ table, but is documented now.

    E.g.:
    select object_id, object_type from notification where recipient_id=<user_uid>

    which returns something like:

    [
      {
        "object_id": "<object_id_1>",
        "object_type": "group"
      },
      {
        "object_id": "<object_id_2",
        "object_type": "stream"
      },
    ]
    

    and you can then use the object_id to fetch the post:

    https://graph.facebook.com/<object_id_1>?access_token=<access_token>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since Intellij does not yet support the Play-Scala-Template-Engine I was thinking about using plain
Since regular jQuery animations are not fluent on iOS ( .hide() , slideDown() ),
I have an app that is using push notifications with apples APNS. Most of
I have created a Push Notifications for Android using GCM. The Service is facing
I'm working on a turn based iOS game using the new turn-based iOS5 API.
I have this facebook app to show fb notifications in my website. Then i
I have currently created a facebook like page that pulls notifications from different tables,
In my android app i am using Latest Geoloqi API to implement Geofence concept.when
since memcpy should be highly optimized nowadays, does it still make sense to optimize
since today im facing a strange problem. When i start my app in my

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.