Creating an Facebook Graph API Achievement for a game with iOS SDK -
I am currently developing a game that does not have a canvas version. It will be playable on iOS and Android platforms. I have to work with the game achievement object. I followed . Send me the meta tag And I have found it I did not understand what happened wrong. .. you must correct this line: the & lt; Meta property = "og: url" content = "Your URL could not understand here on the object" />. I actually did what I started my own server and created an .html file with the content shown in. I've put
on my own object on an object with
http://192.168.2.6:8888/facebooktest/achivement.html . I used code
- (IBAction) updateAchivement: (ID) sender {NSDictionary * params = [NSDictionary dictionaryWithObjectsAndKeys: @ "**** 888 **** 3612", @ "FB : "App_id", @ "game.achievement", @ "OG: Type", @ "http://192.168.2.6:8888/facebooktest/achivement.html", @ "Ogg: URL", @ "Sample Game Achievement" , @ "Og: Title", @ "https://s-static.ak.fbcdn.net/images/devsite/attachment_blank.png", @ "OG: Image", @ "1000", @ "Sports: Issue ", Zero]; / * API call * / [start FBSSEX connectionthatGraphPath: @ "/mi / objects" / "//gram.desummment parameter: Parameters HTTP Math: @" Post "ClosingHandler: ^ (FBCACC Connection Connection, Id Results, NSERR * Error } {/ * Result handle / / (error) {NSLog (@ "% @", error);} and NSLog (@ "result =% @", result);}];}
error domain = com.facebook.sdk code = 5 "operation can not be completed. (Com.facebook.sdk Error 5.) "UserInfo = 0x8d21ef0 {com.facebook.sdk: HTTPStatusCode = 400, com.facebook.sdk: ParsedJSONResponseKey = {body = {error = {code = 100} message =" (# 100 ) Parameter object is required "; type = OAuthException;};}; code = 400;}, Com.facebook.sdk: ErrorSessionKey = & lt; FBSession: 0x8e2ebd0, Status: FBSessionStateOpenTokenExtended, LoginHandler: 0x8e31d40, APID: 605088866273612, URLSmFIX: , Token CachingSign:
[ Fbisiiisiiansianekshn Chaluvithigrafpath: @ "/ m / objects" "
[Fbiariiisiisiansianekshn Chaluvithigrafpth: @" / m / objects / Api_namspes: OBJECT_NAME "
Comments
Post a Comment