Facebook Api me/accounts return error -


I want to get a list of user pages (where the user is the administrator), but I have an internal server error Is happening I also get permission for management_pages. Here's the code. Am I doing wrong?

  $ params = array ('appId' => APP_ID, 'secret' => APP_SECRET, 'cookie' => true); $ This- & gt; Load-> Library ('facebook', $ parameter); $ Data = $ this- & gt; Facebook- & gt; API ('/ m / account /'); Print_r ($ data);    

Place those two rows at the beginning of your PHP file and get detailed descriptions Error message instead:

  error_reporting (E_ALL); Ini_set ('display_errors', 'on');   

You can try commenting on code parts instead, to know which line generates errors.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -