PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, January 15, 2022

[FIXED] deleting my page tab using graph API

 January 15, 2022     facebook-graph-api, facebook-php-sdk     No comments   

Issue

I am trying to delete an page tab app that i have installed on a page using the graphAPI.

I think i am close. here is where i am ( will try to remove fluff)

i have my pageID $pageID

$page_info = $facebook->api("/".$pageID."?fields=access_token");
if( !empty($page_info['access_token']) ) {
            $args = array(
                'access_token'  => $page_info['access_token']
            );
            $pageAccessToken = $page_info['access_token'];
}
$result = $facebook->api('/'.$pageID.'/tabs/'.FB_APP_ID,
                         'delete', 
                          array('access_token' => $pageAccessToken));

but i get the error" Tab is not installed or not removable: Exception-->[(#100) Tab is not installed or not removable:

Thanks for any help


Solution

found my problem

'/'.$pageID.'/tabs/'.FB_APP_ID 

should have been

'/'.$pageID.'/tabs/app_'.FB_APP_ID

I was mising the app_ after /tabs/



Answered By - randy
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing