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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:12:48+00:00 2026-06-04T05:12:48+00:00

I want to build an app which generates a notification (like SMS -> mobile

  • 0

I want to build an app which generates a notification (like SMS -> mobile user will get a notification on his or her phone like while reciving a SMS) for a small range of users that are subscribing that notifications.

I have build an App and such a Community Page (I’m not very familar with Facebook).

Here is my code:

//PHP SDK
require 'include/facebook.php';

//Instant Facebook-Object
$facebook = new Facebook(array(
  'appId'  => '...',
  'secret' => '...',
  'cookie' => true,
));

$user = $facebook->getUser();

if ($user) {
  try {
    // Proceed knowing you have a logged in user who's authenticated.
    $userData = $facebook->api('/me');
  } catch (FacebookApiException $e) {
    error_log($e);
    $user = null;
  }
}

// If a user haven't been loged in, so the user have to authorize
if (!$user) {
  $loginUrl = $facebook->getLoginUrl(
            array(
                'scope' => 'publish_stream',
                'redirect_uri' => 'http://my-hosting.url/'
            )
    );
    header('Location: '.$loginUrl);
    exit;
}

try {
    $publishStream = $facebook->api("/$testid/feed", 'post', array(
        'message' => 'Hello World',
        'link'  => 'http://www.example.org/',
        'name' => 'Test',
        'description' => 'Wohoo some great text.',
        )
    );
} catch (FacebookApiException $e) {
    var_dump($e);   
}

I’m playing with the $testid it contains e.g. $user or community page ID.

In case of the user id I get the message on my wall but without any notification with is sad. If I change that to the community page I’ll get an exception with this message:

(#210) User not visible

That seems that the community page is not allowed to to that. Well before I try to get that permission I would like to ask if this way is possible or if I’m just wasting my time.

  • 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-06-04T05:12:49+00:00Added an answer on June 4, 2026 at 5:12 am

    I can think of mainly two ways of sending notifications to a user using the graph api, each one then splits to two.

    1) Requests
    The requests are a part of the Social Channels and have two types:

    • User requests – will show up in the “globe” notification area on the facebook header.
    • App requests – will show up as a counter near the app name in the bookmarks menu

    2) Private messages
    If you send a private message then the user will get it as any other PM, which means that if the user has installed the facebook app on his mobile phone then he will be notified on the new PM.

    You have two ways to send messages using the api:

    • Send dialog – the problem is that you need to use the facebook dialog (using one of their SDKs).
    • The Chat API – Using xmpp you can send messages on the behalf of the logged in user. Requires the xmpp_login permission.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's pretend that we want to build an eBay like app in which we
I want to build a FB app which posts messages to the walls of
I want to build my first mobile app. I am wondering if I should
I want to build an application that exports user data of another app. The
I'd like to build an iOS app which lets you log in to a
It's a new app I want to build, but I would like some ideas,
i want to build an app in which users can make foto which is
I am trying to build an app in which I want to go to
So I've completed a windows phone 7 app and I want to build it
I would like to build an app which analyses the emotional content of speech

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.