问题描述
我创建Facebook的事件与我的Android代码,现在我想邀请朋友到它。
下面是我的code邀请好友:
I have created a facebook event with my android coding and now I want to invite friends to it.Below is my code to invite friends:
private void inviteFriends()
{
try
{
Bundle params = new Bundle();
params.putString("title", "invite friends");
params.putString("message", "come join us!");
facebook.dialog(this, "apprequests", params, new DialogListener() {
@Override
public void onComplete(Bundle values) {}
@Override
public void onFacebookError(FacebookError error) {}
@Override
public void onError(DialogError e) {}
@Override
public void onCancel() {}
public void onComplete(String response, Object state)
{
try
{
JSONObject eventResponse = new JSONObject(response);
//event_id = event.getString("id");
Log.i(TAG, "Event Response => "+eventResponse);
Log.w("myapp", friends);
//Toast.makeText(getApplicationContext(), "New Event Created!!", Toast.LENGTH_LONG).show();
}
catch (Exception e)
{
}
}
});
}
catch (Exception e)
{
}
}
在code工作到选择的朋友,标题和消息自带的好友列表。我可以发送邀请函,但没有通知发送给选定的人。
The code works up to selecting friends, the title and message comes with the friend list. I can send the invitation but no notifications are sent to selected people.
请告诉我需要做什么。谢谢你在前进!
Please tell me what needs to be done. Thank you in advance!
推荐答案
这个形象。
this image.
你有没有在你的应用程序开发人员设置这样的开启的应用程序OMN Facebbok标签。
如果没有,那么它不会发送通知给你的朋友。
Have you turned on the App omn Facebbok Tab in your app developer setting like this.If don't then it will not sent notification to your friends.
这篇关于邀请好友的Facebook应用程序 - Android的,没有发邀请函的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!