2

Hi am using the following code to send app request to friends but in notification it shows the message as invited you to try test app. It is not displaying the entered message. please help

function sendRequestViaMultiFriendSelector() {
    FB.ui({method: 'apprequests',
        title   : 'Test App',
        message : 'Test app message'
    }, requestCallback);
}
0

1 Answer 1

1

I see two possible issues here.

  1. The documentation says that the maximum message length is 60 characters. Your message might be too long so it is truncated.

  2. The documentation goes on to say

    Invites (requests where the recipient has not installed the app) do not display this value.

    So this means that if this is the first apprequest this user has received prior to installing the application, s/he will not see the message but only the "invitation" to start using your application.

Using the requests dialog, you will be able to "predict" whether the user has installed the application or not by using the filter parameter. Set it to app_users to only display users who have already installed - in this case you can include the (60 character limited) message parameter. If you set the filter to app_non_users, you might want to include the content of your message in the title parameter as it is always shown. The title parameter is limited to 50 characters.

FB.ui({method: 'apprequests',
    title   : 'Test App',
    message : 'Test app message',
    filters : ['app_users']
}, requestCallback);

Which ever way you decide to go, you'll want to have a relatively short message/title for your invites/requests.

Sign up to request clarification or add additional context in comments.

4 Comments

Thanks.. The notification message for authorised (displays the app name) and unathorised (invited you to try test app) but the entered message is missing(Test app message).
I don't think you'll see the message in the notification bar - only in the App center requests tab.
ok thank you. But how can i show the message in notification bar is it possible?
To the best of my knowledge, there is no way to do that, sorry.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.