i 'm working android facebook sdk. i learn and i can login.now i want to post watching movie status in my wall. i googled and i found facebook documentation https://developers.facebook.com/docs/reference/opengraph/action-type/video.wants_to_watch/ i tryed this code
Bundle params = new Bundle();
params.putString("other", "http://samples.ogp.me/467235199955838");
params.putString("movie", "http://samples.ogp.me/453907197960619");
params.putString("tv_show", "http://samples.ogp.me/413802348663468");
params.putString("episode", "http://samples.ogp.me/335419676534648");
new Request(
session,
"/me/video.wants_to_watch",
params,
HttpMethod.POST,
new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
}
}
).executeAsync();
and sessuon is private Session session; import com.facebook.Session;
when i run my app and try to post to wall i have like this log message how i can add access token and application ID? if anyone knows solution please help me thanks
Warning: Sessionless Request needs token but missing either application ID or client token.
0 comments:
Post a Comment