如何使用应用程序名称发布 [英] How to Post with Application Name

查看:161
本文介绍了如何使用应用程序名称发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是简单的code发布用户的墙上。这样的:

I'm using the simple code to post on user's wall. This:

$postwall = $facebook->api("/".$id."/feed", 'post', array(

                    'message' => "test",
                    'link'    => 'http://www.Google.com',
                    'name'    => 'test.',
                    'description'=> 'test.'
                    )); 

这code工作,但它与我的Facebook上张贴的名称。我要发布的应用程序名称。我搜索与应用程序名称验证,我什么都试过,但最后我还是没有解决我的问题。是否有任何人谁可以帮我这个好吗?

This code works but, it's posting with mine facebook name. I want to post with the application name. I searched for authenticating with application name, i tried everything but finally i didn't resolve my problem. Is there anyone who can help me with this please ?

推荐答案

我不认为这是可能的。我想这是你会得到错误:

I don't think this is possible. I guess this is the error you'll get:

(#200),帖里的男主角是一个页面
  不能还包括一个target_id

(#200) Posts where the actor is a page cannot also include a target_id

我在这里所做的是得到 manage_pages 许可,然后得到应用(个人资料页)的access_token 并试图将其追加到POST调用。

What I've done here is that getting the manage_pages permission and then get the application (profile page) access_token and tried to append it to the POST call.

这篇关于如何使用应用程序名称发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆