I want to send app request to one friend as well as to all friend at a time.I had followed the following posts,
how-to-send-app-requests-to-friends-through-facebook-android-sdk
I am able to get the correct response as described in the Dev site but the problem is none of my friends are getting the app request notification.Following is what I have tried,
Bundle params = new Bundle();
params.putString("FIRST INVITATION", "My invitation from facebook..");
params.putString("message", "My First App Invitation from Android App to facebook.Lol");
params.putString("app_id",APP_ID);
mFacebook.dialog(this, "apprequests", params, new DialogListener() {
@Override
public void onComplete(Bundle values) {
Toast toast = Toast.makeText(getApplicationContext(), "App request sent", Toast.LENGTH_SHORT);
toast.show();
}
@Override
public void onFacebookError(FacebookError error) {
Toast.makeText(getApplicationContext(), "Facebook Error: " + error.getMessage(), Toast.LENGTH_SHORT).show();
}
@Override
public void onError(DialogError e) {
}
@Override
public void onCancel() {
Toast toast = Toast.makeText(getApplicationContext(), "App request cancelled", Toast.LENGTH_SHORT);
toast.show();
}
});
can anyone tell me what went wrong here??
EDIT:1
I checked the Hackbook sample Application APP ID which comes with Facebook SDK,and my app works fine So came to know that there must be some problem in app setting.I disabled the sandbox mode too.Is there any extra setting required in order to send app request??
EDIT-2
After some R & D I came to know the real problem.There is no problem in the coding part.I was making mistake in app setting in the FB Dashboard. I need to add a Facebook Hash key in the app setting.Anyways, thanks all for your help.