Niente, creata un app web alla pagina https://developers.facebook.com
con il seguente codice posso pubblicare sulla mia bacheca ma non la pagina fan della mia attività.
Imports ASPSnippets.FaceBookAPI
Imports System.Collections.Generic
Public Class tfbpost
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
FaceBookConnect.API_Key = "xxxxxxxxxxxxx"
FaceBookConnect.API_Secret = "xxxxxxxxxxxxxx"
If Not IsPostBack Then
Dim code As String = Request.QueryString("code")
If Not String.IsNullOrEmpty(code) Then
ViewState("Code") = code
pnlPost.Enabled = True
'btnAuthorize.Enabled = False
End If
End If
End Sub
Protected Sub Authorize(ByVal sender As Object, ByVal e As EventArgs)
FaceBookConnect.Authorize("publish_actions", Request.Url.AbsoluteUri)
End Sub
Protected Sub Post(ByVal sender As Object, ByVal e As EventArgs)
Dim data As Dictionary(Of String, String) = New Dictionary(Of String, String)
data.Add("link", "http://www.portobellocatanzaro.it/prodotto.aspx?nome=prezzoperelettrodomesticotest221181")
data.Add("picture", "http://www.portobellocatanzaro.it/public/201591122458.jpg")
data.Add("caption", "caption")
data.Add("name", "Nome")
data.Add("message", "Pubblicazione in auto per test Portobello")
FaceBookConnect.Post(ViewState("Code").ToString, "me/feed", data)
End Sub