Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Facebook 张贴到用户的墙上,就好像是他们在张贴一样_Facebook_Facebook Wall - Fatal编程技术网

Facebook 张贴到用户的墙上,就好像是他们在张贴一样

Facebook 张贴到用户的墙上,就好像是他们在张贴一样,facebook,facebook-wall,Facebook,Facebook Wall,我有一个应用程序,我可以在用户允许的情况下发布到用户的墙上。但是,当应用程序制作一个墙贴时,它显示它是来自我的,是应用程序在用户墙上发布的管理员。我希望它看起来像是实际用户在自己的墙上发布的。。。使用VS2008、.NET3.5 这是我的密码 Dim oFB As Facebook.FacebookClient Dim sAppId As String = "my app id" Dim sAppSecret As String = "it's a secret"

我有一个应用程序,我可以在用户允许的情况下发布到用户的墙上。但是,当应用程序制作一个墙贴时,它显示它是来自我的,是应用程序在用户墙上发布的管理员。我希望它看起来像是实际用户在自己的墙上发布的。。。使用VS2008、.NET3.5

这是我的密码

    Dim oFB As Facebook.FacebookClient
    Dim sAppId As String = "my app id"
    Dim sAppSecret As String = "it's a secret"

    Dim webClient As System.Net.WebClient = New System.Net.WebClient()
    Dim result As String = webClient.DownloadString("https://graph.facebook.com/oauth/access_token?client_id=" & sAppId & "&client_secret=" & sAppSecret & "&grant_type=client_credentials")

    '- Access token changes every hour
    oFB = New Facebook.FacebookClient(sAppId, sAppSecret)

    oFB.AccessToken = result.Substring(result.IndexOf("=") + 1)

    Dim oPost As Collections.Generic.IDictionary(Of String, Object)
    oPost = New Collections.Generic.Dictionary(Of String, Object)
    oPost.Add("message", "(websitepipeline test post) Check out this new product!") '- This is the wall post / the description input for the DM function
    oPost.Add("link", "http://www.example.com/content/somepage.html")
    oPost.Add("from", "the user who authenticated")
    oFB.Post("the user who authenticated/feed", oPost)

这里有一个链接,指向某个人为.NET制作的一个库,它围绕着这个库;[连结]http://www.lagorio.net/windows/facebook/ 显然,您需要显示一个FBI对话框,询问用户的凭据,当然!:不太确定您使用的是哪个库,但可能from的字符串不正确,或者需要是某种类型的用户令牌


使用带有此API的.setStatus命令。

等待。。。你正在制作垃圾邮件应用程序>:我正在使用facebook sdk。我只发布已验证我的应用程序的用户选择的内容。我会看看你丹贴的链接。这一个有效,但它贴的是。。。在每件事的前面setStatus上不是有一个:includeVerb参数吗?这不就把它去掉了吗_fbService.Users.SetStatustext,/*包括动词*/true;含糖的就这样。。。Parameters.Addstatus_包括动词,True