dongzhi6087 2015-01-02 05:11
浏览 62
已采纳

如果不使用Facebook登录并回拨网址,Facebook应用程序可以获得批准吗?

I am using facebook php sdk v4 to post as admin to my own fan page. No other user will use this app.

The script will run under cron job and post three products a day. I created a new facebook app and use graph API explorer to get short live access token. I need extended permission on "manage_pages and "publish_actions". Tested using test app and working fine.

Now I need to get approval of the app. However, I do not use Facebook login and there is no call back url, which is required in the form of approval. Since this is run under background, Facebook team can not test the app.

How to get the actual app approved and run on my server?

$api_key = 'xxxxx';
$api_secret = 'yyyyy';
$page_id = 'zzzzz';
$accessToken='aaaaa';

FacebookSession::setDefaultApplication($api_key, $api_secret);
$session = new FacebookSession($accessToken);

$access_token = (new FacebookRequest( $session, 'GET', '/' . $page_id,  array( 'fields' => 'access_token' ) ))
    ->execute()->getGraphObject()->asArray();

// save access token in variable for later use  
$access_token = $access_token['access_token'];

$page_post = (new FacebookRequest( $session, 'POST', '/'. $page_id .'/feed', array(
    'access_token' => $access_token,
    'name' => 'product title',
    'link' => 'product image url',
    'caption' => 'web store name',
    'message' => 'product description and url',
  ) ))->execute()->getGraphObject()->asArray();
  • 写回答

1条回答 默认 最新

  • dronthpi05943 2015-01-02 06:22
    关注

    You don't need to get the application reviewed if you are going to be the only person using it . Even if you need to enable access to the app for few members in the team, you can add them as app testers to the app (in roles section) , so that even they can also use the app with out review .

    the review action is for ensuring the quality of the app to general public. but all the actions including open graph stories can be published on behalf of app owner/developer or testers accounts with out review .

    note : for your purpose you might not want to change the application from development mode . more details on development mode and app roles .

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 求螺旋焊缝的图像处理
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面
  • ¥15 itunes恢复数据最后一步发生错误
  • ¥15 关于#windows#的问题:2024年5月15日的win11更新后资源管理器没有地址栏了顶部的地址栏和文件搜索都消失了