Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

TMSFMXCloudFacebook post to a Page

 Post Reply Post Reply
Author
Schliack Andreas View Drop Down
New Member
New Member
Avatar

Joined: 17 Feb 2014
Posts: 14
Post Options Post Options   Quote Schliack Andreas Quote  Post ReplyReply Direct Link To This Post Topic: TMSFMXCloudFacebook post to a Page
    Posted: 18 Aug 2015 at 7:44pm
Hello,
if i use the TMSFMXCloudFacebook.post i only can Post to my own Timline.

The doc says with a command like this :

  TMSFMXCloudFacebook1.Post(Edit2.Text, Edit1.Text, Edit3.Text, pageid);

A post can be in a Page. 
But while compiling i got :

There is no overloaded version of Post.

If i remove the Parameter pageid it works in my own Timeline

Any tips ?
I Use XE8 ..

Regards
Andreas 
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8064
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2015 at 7:56pm
It is unclear what the type of pageid is in the code you show here.
The expected type is an instance of class TFacebookPage. Is this the case?
Back to Top
Schliack Andreas View Drop Down
New Member
New Member
Avatar

Joined: 17 Feb 2014
Posts: 14
Post Options Post Options   Quote Schliack Andreas Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2015 at 9:24pm
Hello,
yes , this is the Way to get the ID

  Profile := ListBox2.Items.Objects[ListBox2.ItemIndex] as TFacebookPage;
  pageid:=profile.id;

This works fine, but my problem is, that the compiler says :

There is no overloaded version of Post.

  TMSFMXCloudFacebook1.Post(Edit2.Text, Edit1.Text, Edit3.Text,pageid);

if i remove the fourth Parameter (pagid) the compiler works fine ....

it looks like there is no post like described in the devguide :

Post(const Msg, Link, Image: string): string; Post a message on the userís Facebook Feed with an optional URL link and image URL.

Post(const Msg, Link, Image: string; Page: TFacebookPage): string; Post a message on the userís Facebook Page with an optional URL link and image URL.


Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8064
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2015 at 9:25pm
Profile.id is not of the type TFacebookPage, Profile is.
Back to Top
Schliack Andreas View Drop Down
New Member
New Member
Avatar

Joined: 17 Feb 2014
Posts: 14
Post Options Post Options   Quote Schliack Andreas Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2015 at 9:44pm
Arrgghhhh --... Damn ... i need more Coffee :-(

Ok ... i have changed it like this :

  pagepost:=  ListBox2.Items.Objects[ListBox2.ItemIndex] as TFacebookPage;
  TMSFMXCloudFacebook1.Post(Edit2.Text, Edit1.Text, Edit3.Text,pagepost);

But in the selected Page is no posting ... the debugger does not stop and theres no exception ....

:-( 

Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8064
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2015 at 9:45pm
You own this page and have permissions?
Back to Top
Schliack Andreas View Drop Down
New Member
New Member
Avatar

Joined: 17 Feb 2014
Posts: 14
Post Options Post Options   Quote Schliack Andreas Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2015 at 9:50pm
yes ,, they are my pages ...
Back to Top
Schliack Andreas View Drop Down
New Member
New Member
Avatar

Joined: 17 Feb 2014
Posts: 14
Post Options Post Options   Quote Schliack Andreas Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2015 at 10:04pm
Ok....  something testet...

normal Post does not work ...

  TMSFMXCloudFacebook1.Post(Edit2.Text, Edit1.Text, Edit3.Text);


If i Post a Picture :
     ImageID := TMSFMXCloudFacebook1.PostImage(Edit2.Text, OpenDialog1.FileName);

it works......

The Logfile logs everything, but no posting .. only the results ....


Back to Top
Schliack Andreas View Drop Down
New Member
New Member
Avatar

Joined: 17 Feb 2014
Posts: 14
Post Options Post Options   Quote Schliack Andreas Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2015 at 10:32pm
remark ....

If i use this one :

  TMSFMXCloudFacebook1.Post(Edit2.Text,'', '',pagepost);

it works ... 


Normaly if edit1 and edit3.text is empty (nothing typed in) this 

  TMSFMXCloudFacebook1.Post(Edit2.Text, Edit1.Text, Edit3.Text,pagepost);

have to work, but it doesnt ....
Where is the Problem ??????


Back to Top
Schliack Andreas View Drop Down
New Member
New Member
Avatar

Joined: 17 Feb 2014
Posts: 14
Post Options Post Options   Quote Schliack Andreas Quote  Post ReplyReply Direct Link To This Post Posted: 18 Aug 2015 at 10:43pm
Remark 2  ....

There is something wrong....

if i Use this :
  TMSFMXCloudFacebook1.Post(Edit2.Text, 'http://www.good-sound.de', 'http://a4.files.biography.com/image/upload/c_fit,cs_srgb,dpr_1.0,h_1200,q_80,w_1200/MTE4MDAzNDEwNzA5OTM5NzI2.jpg',pagepost);

Works perfect .. Text , Picture and URL are correct ....

if i Use this 
  TMSFMXCloudFacebook1.Post(Edit2.Text, Edit1.Text, Edit3.Text,pagepost);

And fill the edit-Fields with the Values from the First one ... NOTHING ... no Posting ....

Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2083
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 19 Aug 2015 at 9:27am
Hi,

I'm not sure what is going wrong here.
Does the Post call work when posting to your timeline instead of a page?
Can you please make sure Logging is enabled and LogLevel is set to llDetail for the TMSFMXFacebook control, then check if any error messages have been added to the LOG file?
If so, please provide the relevant error messages so I can further investigate this issue.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down