Hey everyone,
I am trying to get the session_key
and secret
for a facebook session (offline_access) in canvas application.
However, I am unable to get these two particular variables. When, I am testing the same code locally, I can get the variables above (but this can be because the local app is not a canvas application)
• 采用以下代码进行转导:
$facebook->getLoginUrl(array(
canvas => 1,
fbconnect => 0,
req_perms => user_status,publish_stream,offline_access
));
难道有人会告诉我,当用户授权申请时,我怎么能够 gr上<条码>、_key和secret<>/code>? (永久上网)
这方面的一个例子是<条码>。 倾销通过Face:
Array (
[uid] => 100000926583671
[session_key] =>
[expires] => 0
[secret] =>
[base_domain] =>
[access_token] => 183043495039366|3ab6ac2asdkhj1bcfdec13d7-100000926583671|jJQaIT-n80YxioAasdwN0cm99U
[sig] => 2f64sadasc1da31c12927a052752776
)
错误是:
Array (
[error] => Array (
[type] => OAuthException
[message] => An active access token must be used to query information about the current user.
)
)