我有一個應用程序,我可以發佈到用戶的牆上,當他們允許它。但是,當應用程序發佈牆貼時,它會顯示它來自我(應用程序管理員)張貼在用戶的牆上。我希望它看起來就像是對自己的牆上實際用戶發佈...(使用VS 2008,NET 3.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)
等待等待...您是否在製作垃圾郵件應用程序> :( – Daniel
我正在使用facebook sdk(http://facebooksdk.codeplex.com/)。我只發佈用戶選擇的內容驗證我的應用程序,我會檢查你的(丹)發佈的鏈接。 – Brian