Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Developer
Posts: 103
Registered: ‎12-12-2011
My Device: Developer
My Carrier: Robosoft
Accepted Solution

Missing message or attachment error in Facebook publishPost() API.

Hi all,

I am integrating Facebook in my app. I am using the source provided at sourceforge.net. Till now I had problem with FB login, but now that issue seems to be resolved.

 

But now am facing problem with publishPost() API which takes parameters as:

publishPost(String pMessage, String pLink, String pPicture, String pName, String pCaption, String pDescription, String pSource).

 

Since, I do not require the parameters, pMessage, pLink, pPicture and pSource to be posted, I am leaving them blank i.e. sending an empty string(""). But with that I am getting "Missing message or attachment" error. Please someone tell me is Message or Attachment a necesary field to sent for posting. Thanks in advance.

 

Developer
Posts: 103
Registered: ‎12-12-2011
My Device: Developer
My Carrier: Robosoft

Re: Missing message or attachment error in Facebook publishPost() API.

I got answer to my question. Yes sending a link (attachment) for publishPost() api in Facebook SDK is necessary. Otherwise we receive a "Missing message or attachment" error.