I have been using http post to interact with a text message service API from within VBA and it works really well. I am aware that Facebook updates can be updated using http post but am struggling to get this to work. It may well be that it is not possible to achieve, hence this post.
From the Graph API this appears to be the http post code
I have setup an app on Facebook and have all the access tokens etc
Below is a snippet of what I am using to make http post requests to the text service
Set WinHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
myURL = "https://api.txtlocal.com/send/?"
postData = "apiKey=" + apiKey + "&message=" + message + "&numbers=" + numbers + "&sender=" + sender
WinHttpReq.Open "POST", myURL, False
WinHttpReq.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
SendSMS_textlocal = WinHttpReq.responseText
What I am looking to do is if you like, modify what I am using here to use HTTP post to update Facebook.
I am probably barking up the wrong tree and it's not possible, but I thought it worth an ask? My issue is how to format the request to make the call.
If anyone could help that would be fantastic and much appreciated.