Graph API for registering with Facebook iOS SDK 3.1.1

I use the Facebook SDK 3.1.1 to login and register with Facebook. Facebook login works fine, but CheckIn using the chart API gives an error.

That's all I give for checking @ "friends_status", @ "user_checkins", @ "friends_checkins", @ "user_status".

and here is the request:

[FBRequestConnection startForPostStatusUpdate:message place:placeId tags:nil completionHandler: ^(FBRequestConnection *connection, id result, NSError *error) { NSLog(@"Response....... \n\n %@ %@ %@",connection,result,error); } ]; 

Answer:

)> (null) Domain error = com.facebook.sdk Code = 5 "Operation could not be completed (com.facebook.sdk 5. error)" UserInfo = 0x808a5a0 {com.facebook.sdk: ParsedJSONResponseKey = {type = mutable dict , count = 2, entries => 1: {contents = "code"} = {value = +403, type = kCFNumberSInt32Type} 2: {contents = "body"} = {type = mutable dict, count = 1, entries = > 11: {contents = "error"} = {type = mutable dict, count = 3, entries => 2: {contents = "type"} = {contents = "OAuthException"} 3: {contents = "message"} = {contents = "(# 200) The user did not allow the application to perform this action"} 6: {contents = "code"} = 200}

}

}, com.facebook.sdk: HTTPStatusCode = 403}

Can someone help me on what's wrong with the code?

+6
source share
1 answer

The location Post parameter requires read_stream permission.

0
source

All Articles