就像使用facebook SDK的c#代码的Facebook页面一样 [英] Like a Facebook page from c# code using facebook SDK

查看:81
本文介绍了就像使用facebook SDK的c#代码的Facebook页面一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在使用Facebook SDk进行C#和Fb集成时遇到了实现功能的问题。



< b>我想喜欢Facebook上的PUBLIC页面。我搜索了很多链接但找不到任何解决方案。



我实际上想在我的应用程序上构建一个Like按钮并实现此功能。



[虽然FB也提供了自己的LIKE按钮但是如果可能的话我想知道如何手动实现它。]



虽然我很喜欢获得页面的总喜欢但是POST不起作用。当我试图在facebook的开发者控制台上运行测试查询时,我得到以下回复:

Hi
I am facing an issue with achieving a functionality while progressing on using Facebook SDk for C# and Fb integration.

I want to 'like' a PUBLIC page on facebook. I have searched a number of links but could not find any solution.

I actually want to pose a Like Button on my Application and achieve this functionality.

[Though FB also provides a LIKE Button of their own but if possible i would like to know how to achieve it manually.]

Though i am ABLE to get the 'total likes' of the page but POST is not working. When i tried to run the test query at Developer Console of facebook, i got the below response:

{
  "error": {
    "message": "(#210) Subject must be a page.", 
    "type": "OAuthException", 
    "code": 210
  }
}







我目前正在Windows应用程序(.Net 4.0)上尝试此操作,但希望将其扩展到Windows 8手机应用程序。





谢谢



问候

Rohit




I am currently trying this on a Windows Application (.Net 4.0), but Wanted to extend it to a Windows 8 phone App.


Thanks

Regards
Rohit

推荐答案

我想我已经在PHP链接中找到了解决方案。



I think i have found a solution in a PHP link.

like-posts-over-facebook-graph-api





现在我收到了这个错误:



Now I got this error:

{
  "error": {
    "message": "(#200) App does not have permission to make this call", 
    "type": "OAuthException", 
    "code": 200
  }
}





这需要publish_actions的扩展权限 ,这需要提交请求到FB [这是我在浏览更多页面时发现的]。我无法做到这一点,因为我只是测试这个应用程序,没有一个正确的注册APP或网站。



所以关闭这个问题,因为我希望在一些直播APP我可以找到上面的链接 ,因为它是



谢谢



This requires extended permissions for your App for "publish_actions" and this require submission request to FB [ This is what I found while going through few more pages ] . I cannot make it to that as I was just testing this app and dont have a proper registered APP or a website.

So closing this question as I HOPE on some live APP i may found the above link to work as it is.

Thanks


这篇关于就像使用facebook SDK的c#代码的Facebook页面一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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