Yii Framework Forum: [yiisoft/yii2-authclient] Error from adding tab to page - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[yiisoft/yii2-authclient] Error from adding tab to page @@@ Rate Topic: -----

#1 User is offline   LeVanLau 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 91
  • Joined: 24-April 14

Posted 29 July 2016 - 08:42 AM

Hi everyone!
While i call api to add tab to page, an error return "Request failed with code: 403, message: A page access token is required to request this resource..."
My code in php :
{
...
$page_id=xxxxxxxx;
$page_access_token="xxxxxxxxxxxxxxxxxxxxxxxxxx...";
$result=$client->api('v2.6/'.$page_id.'/tabs', 'POST', ['app_id'=>xxxx, 'tab'=>'xxxx', 'position'=>3, 'access_token'=>$page_access_token, .....]);
...
}
???
I don't know where to put "access_token" in the "api" function is true ?
I use many other api function to call for manage page is successfully.
Please help me. Thank you
0

#2 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 3,317
  • Joined: 16-February 11
  • Location:Japan

Posted 30 July 2016 - 10:37 PM

/* Moved from "Tips" to "Extensions" */
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users