php - fetch public facebook events -
I am trying to get all the events from a public page. I'm sure the API and App Secret is correct and I'm still getting:
Fatal Error: Constant OAuthException: Invalid OAuth Access Token Signature. I have also added the site URL to the Facebook Developer app. I / O 13 /
on line /var/www/Events/facebook/src/base_facebook.php Threw in. I have responded to many threads, but again and again I am getting the same error. What am I doing wrong to bring the incident data?
ob_start (); 'Facebook / src / facebook.php' is required; $ Fb = new Facebook (array ('append' =>; APPID ',' secret '= & gt;' APCCRT ')); $ Page_events = $ fb- & gt; API ('/ IQUSA / Event', 'GET'); printf ('& lt; pre & gt;% s & lt; / pre & gt;', $ page_events);
You have asked the same question again! But I saw a major error this time:
Instead of 'APIID' it should be 'appId' . (Capital I ) But the second thing: no incident of Iikeausa is public, so you will get a blank array as a result. Try the following, it will give you an event that is public - $ fb = new Facebook (array ('appId' => 'app-id', 'secret' = & Gt; 'app-right')); $ Page_events = $ fb- & gt; API ('/ Shadowfax Cohill / Events', 'GET'); Print_r ($ page_events);
Comments
Post a Comment