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 tried 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 session is
import com.facebook.Session;
private Session session;
when I run my app and try to post to wall I have like this log message
Warning: Sessionless Request needs token but missing either application ID or client token.
how I can add access token and application ID?
if anyone knows solution please help me
thanks