What have you found for these years?

2010-09-13

broken_old_rest

rest-graph.rb: add RestGraph#broken_old_rest, see:

Facebook PHP SDK access token signing bug

if you're getting this error from calling old_rest:

The method you are calling or the FQL table you are querying cannot be
called using a session secret or by a desktop application.

then try broken_old_rest instead. the problem is that the access_token
should be formatted by "#{app_id}|#{secret}" instead of the usual one,
and the json returned by facebook is broken too, need to remove the
quotes and the extra '\'. for instance:

"{\"app_id\":\"123\"}"

instead of the correct one:

{"app_id":"123"}

so, there are two hacks in broken_old_rest. one is faking access_token,
the other one is fix the json by removing extra quotes and the '\'.

-

This applied to admin.getAppProperties.

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0