Facebook 图 Api 在 android 中搜索
Facebook Graph Api search in android
只想使用图表中的新请求搜索特定位置的所有事件 api,但会抛出错误。
//Request for events
new Request(
session,
"/search?q=dubai&type=event",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
System.out.println("Result: " + response.toString());
}
}
).executeAsync();
权限:-
authButton.setPublishPermissions("publish_actions","manage_pages");
输出:-
Result: {Response: responseCode: 400, graphObject: null, error: {HttpStatus: 400, errorCode: 100, errorType: GraphMethodException, errorMessage: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api}, isFromCache:false}
建议一些解决方法。
对于 facebook Api,请参考以下其开发者 link:
https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2
https://developers.facebook.com/docs/graph-api/reference
http://api-portal.anypoint.mulesoft.com/facebook/api/facebook-graph-api/docs/code
希望有用。
试试这个新的API,希望对你有帮助。
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{event-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
希望对您有所帮助,详见下文link
https://developers.facebook.com/docs/graph-api/reference/event/
只想使用图表中的新请求搜索特定位置的所有事件 api,但会抛出错误。
//Request for events
new Request(
session,
"/search?q=dubai&type=event",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
System.out.println("Result: " + response.toString());
}
}
).executeAsync();
权限:-
authButton.setPublishPermissions("publish_actions","manage_pages");
输出:-
Result: {Response: responseCode: 400, graphObject: null, error: {HttpStatus: 400, errorCode: 100, errorType: GraphMethodException, errorMessage: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api}, isFromCache:false}
建议一些解决方法。
对于 facebook Api,请参考以下其开发者 link: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2 https://developers.facebook.com/docs/graph-api/reference http://api-portal.anypoint.mulesoft.com/facebook/api/facebook-graph-api/docs/code
希望有用。
试试这个新的API,希望对你有帮助。
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{event-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
希望对您有所帮助,详见下文link
https://developers.facebook.com/docs/graph-api/reference/event/