Hi
This may be a stupid question, but how can I post an image (or message) to a different Facebook user/group page?
I also would like to list the groups/pages the user is a member of so that the user can select the page/group/friend and then post the picture or message to that group/page/friend.
This is how I do it today, but this will only post the picture to the users own page:
procedure PostPicToFaceBook(AText,AFilename : string;AFacebook : TAdvFacebook;AAddText : Boolean);
begin
if FileExists(AFilename) then
begin
if gFacebookConnected then //gFaceBookConnected is a global variable
AFacebook.PostImage(AText + AppendText,AFilename)
else
begin
LogonToFacebook(AFacebook);
if gFacebookConnected then
AFacebook.PostImage(AText + AppendText,AFilename);
DeleteFile(AFilename);
end;
end;
end;
Hi,
You can retrieve a list of pages the currently authenticated user is a member of with the GetPages call.
To post an image or message to a specific page you can use the Page parameter of the Post/PostImage call.
Unfortunately it's currently not supported to post a message on a group/friend page.
Please have a look at the FacebookDemo application for an example.
Great, thanks. I have already checked the FacebookDemo, but I will take a look again.