Forum QuickConnect Player IO facebook graph

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

Player IO facebook graph

Postby samsonadze » January 14th, 2013, 1:43 am

Hi,i downloaded "facebook Graph api written for playerio" and Now i want to use it in my game.

so when i type simple thing it throws errors.here's my code

Code: Select all
import Facebook.*;

FB.init({ access_token:access_token, app_id:addID, debug:true })


and the errors are - http://i.imgur.com/bY0sg.png

Any help? :)
C#
samsonadze
 
Posts: 122
Joined: August 29th, 2012, 2:39 pm

Re: Player IO facebook graph

Postby Benjaminsen » January 14th, 2013, 1:44 am

Did you copy in the Facebook folder into the source of your project?
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Player IO facebook graph

Postby samsonadze » January 14th, 2013, 12:27 pm

I did and it works now. but i have another problem.

when i init fb it works. then when i type

Code: Select all
FB.api({path:"/me/feed", method:"POST", params:{body:"message test",link:"ex.com"}})

that it shows error in trace!
the error is:
Code: Select all
ArgumentError: Error #1063: Argument count mismatch on Facebook::FB$/restCall(). Expected 2, got 1.
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at Facebook::FB$/api()
   at example_fla::MainTimeline/frame1()


Can anyone give me an example how can i post on someones timeline using that?
C#
samsonadze
 
Posts: 122
Joined: August 29th, 2012, 2:39 pm

Re: Player IO facebook graph

Postby samsonadze » January 14th, 2013, 12:29 pm

btw. in the readme file , there was how could i post on timeline ,i copied it pasted in as and it was wrong! there was errors. i guess you have to update it player.io team. :)
C#
samsonadze
 
Posts: 122
Joined: August 29th, 2012, 2:39 pm

Re: Player IO facebook graph

Postby samsonadze » January 14th, 2013, 12:34 pm

oh well,i added callback too, and it worked,but LOl it throws trace error:


{error_msg="Invalid API key", error_code="101", request_args=[{key="path", value="/me/feed"}, {key="callback", value="c"}, {key="access_token", value="AAACEdEose0cBAFRDImcgboBJFVzydvalVCDx8DWq9OZBx4PI4fdEZBbKZBZBE8xjyrOlAp165h9GJEFdji5AlYQzNZBOZAutiwoqwWPE0xVhayuUBIi79o"}, {key="api_key", value="315502538548303"}, {key="method", value="POST"}, {key="format", value="json-strings"}, {key="params", value="[object Object]"}]}

what to do? -_-
i'm importing my app api key. -__- . i have to setup "open graph" thing on my app? i have no idea of open graph :(
C#
samsonadze
 
Posts: 122
Joined: August 29th, 2012, 2:39 pm

Re: Player IO facebook graph

Postby Benjaminsen » January 14th, 2013, 6:48 pm

samsonadze wrote:oh well,i added callback too, and it worked,but LOl it throws trace error:


{error_msg="Invalid API key", error_code="101", request_args=[{key="path", value="/me/feed"}, {key="callback", value="c"}, {key="access_token", value="AAACEdEose0cBAFRDImcgboBJFVzydvalVCDx8DWq9OZBx4PI4fdEZBbKZBZBE8xjyrOlAp165h9GJEFdji5AlYQzNZBOZAutiwoqwWPE0xVhayuUBIi79o"}, {key="api_key", value="315502538548303"}, {key="method", value="POST"}, {key="format", value="json-strings"}, {key="params", value="[object Object]"}]}

what to do? -_-
i'm importing my app api key. -__- . i have to setup "open graph" thing on my app? i have no idea of open graph :(


The API_Key you pass is not valid :)
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Player IO facebook graph

Postby samsonadze » January 14th, 2013, 7:15 pm

It's my real appid/api key of my app on fb :( :cry:
C#
samsonadze
 
Posts: 122
Joined: August 29th, 2012, 2:39 pm


Return to QuickConnect



cron