Reputation: 21
I sent an apprequests through my test Android app and in onComplete()
method I got message like this
Bundle[{to[0]=1460762087, request=425924150781914}]
But at friends side, they did not get any notifications. Only at left side, i can see a "1" next to "Apps and Games", but after click, I did not see any app request.
here is my code
Bundle params = new Bundle();
params.putString("message", "Join us!");
context.facebook.dialog(context, "apprequests", params, new DialogListener(){
@Override
public void onComplete(Bundle values){
Log.d("send request response", values.toString());
}
@Override
public void onFacebookError(FacebookError e){
Log.d("facebook error", e.toString());
}
@Override
public void onError(DialogError e){
Log.d("dialog error", e.toString());
}
@Override
public void onCancel(){}
});
Upvotes: 2
Views: 1708
Reputation: 28229
I had the same issue, solved it yesterday:
Log in to your edit app page on Facebook - https://developers.facebook.com/apps
Fill the fields for
Canvas URL
and Secure Canvas URL
, even if you add bogus URLs the
notifications should start appearing properly (as long as the URLs
end with a '/')
Now you'll see that if you click on those notifications on a mobile device you'll either get your app opened if it's already installed or get to the google play page of your app.
If you click on the notification on a desktop browser, you'll get to
a facebook page which except for a top header is empty, you can fill that
page with the Secure Canvas URL
, you'll need a site that supports
https for that.
Upvotes: 7