I am trying to post some predefined text to facebook wall using my android app.
I read somewhere in facebook terms and conditions that fb does not allow external apps to post predefined text to fb wall.
Is there any way to add text to the fb post edit box?
If so pls tell how to do it.
Thanks in advance :)
post some predefined text
That part is impossible and not allowed, because:
Don't prefill captions, comments, messages, or the user message
parameter of posts with content a person didn’t create, even if the
person can edit or remove the content before sharing.
Source: https://developers.facebook.com/policy/
Obviously, you will never get the required permission (publish_actions) approved for posting predefined text.
Related
At present i am struggling to post a comment to a photo on facebook wall .
Can any one direct me the graph-api for posting comment to the facebook photo?
Thanks
So, if you want to publish something, you need to use POST request for facebook-graph-api.
Facebook has a graph structure, so, each thing has connections to other things.
You need to post a message to photo. Ok.
If you have an access_token, you can you POST-request for Graph-API.
OK, after all things, just create an URL for request: https://graph.facebook.com/PHOTO_ID/comments?message=MESSAGE&access_token=ACCESS_TOKEN and use POST:
POST https://graph.facebook.com/PHOTO_ID/comments?message=MESSAGE&access_token=ACCESS_TOKEN
See more information in Publishing section
Adding the icon
You can manage icons from your app's dashboard: https://developers.facebook.com/apps/APP_ID/appdetails
I can able to login, but facing difficulty in posting message on facebook wall. can somebody give me the possible resolutions?
check out the link below:
http://www.android10.org/index.php/articleslibraries/290-facebook-integration-in-your-android-application
Just, don't forget to add app ID in your code. And its the efficient code you can get...:)
I want to integrate an android app with facebook.
I've managed to fetch friends list and to post on wall on demand (a facebook url view is loaded and the user can post on wall whatever he texts).
I want, when the app is started and the user accepts the permisions, to post a message on wall that he is started to play my game without showing that url view for posting (an automatically post)
Can someone help me?
It's probably late and maybe you've got your answer for this question.
But for anyone else who need an answer:
First, you can use the Graph API, there is an example of how to post on
a wall.
But there is a restriction!!
Facebook is not allow us to enter a prefiil message!
The content of this message must come from the user itself!
Watch this video of Facebook on Platform Policy 2.3 Example and Explanation
I am using the facebook API in my app, i know how to post message on wall. my requirement is, i want read the wall information of user recent status information through code .
How can i achieve this...
for example. from my facebook account i want to get the latest status information.
Here's a great example of using the GraphAPI to do that
https://graph.facebook.com/me/feed?access_token={}
Try it out here: https://developers.facebook.com/tools/explorer
EDIT
I stumbled across this the other day. There's a connection from the user object called statuses, which filters the stream even more than feed. As with many graph calls, you can add ?limit=N to limit the result set. So this new way I discovered would look like:
https://graph.facebook.com/me/statuses?limit=1&access_token={}
You should use a third party API such as Easy Facebook SDK. It allows you to do what you are trying to do with ease.
U should check it out here:
http://developers.facebook.com/blog/post/385/
I have not used Twitter enough to become familiar with its terminology or the way it works, so please help me in understanding the problem I have at hand.
I am getting last 20 status updates posted by some Twitter user via RSS feed, the feed XML is parsed and the statuses are displayed in a ListView. Which means that I have the original tweet in a String variable(row of ListView). When I click a ListView item, I get the option of "Re-tweeting" and "post reply".
As, I understand it, when re-tweeting I will have to just update my status as:
RT #orig-poster <original tweet>
and when posting a reply I will have to just update my status as:
#orig-poster <my tweet>
I skimmed through the JavaDocs of the Jwitter library(Twitter class) and found a setStatus(String) method. I dont think I will have to make use of retweet() or reply() functions of the Twitter class in JTwitter library.
Is my understanding correct? Please correct me if I am wrong here or missing anything.
Thanks!
Retweets and Replies are a bit more complex than simple syntax differences:
A reply has an in_reply_to_status_id field that indicates what Tweet (given by Tweet id) the submitted tweet is replying to (see http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses%C2%A0update).
A retweet has two forms:
An 'old style' retweet which prepends an RT to an original tweet
A new sytle retweet, which calls a specific API endpoint with a Tweet id (see http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-retweet).
You're quite right that you can send retweets and replies just by setting your status.
If you can, use Twitter.reply() for replies, as this provides threading information to Twitter, which other clients may use to give conversational displays.
If you want new-style retweets use Twitter.retweet(). New-style v old-style is a matter of taste. New-style retweets will display as the original tweeter in the Twitter web client, and may be ignored by other clients as they're not included in the standard timeline for a user. Personally I prefer old-style, which is more reliable and allows you to add your own comment.
As others pointed out there are difference how the data is presented on Twitter. You have to use retweet() or reply() so get the full out of the API.
The terminology is correct (that's how Twitter users retweet/update their statuses) but I'm not sure about the library.
Replies and retweets can be linked back to the original tweet, so I assume this is why the API has a reply() and retweet() methods and that's why you should use those two functions.
Edit: By "linking back", I mean that, on twitter, if a tweet has been retweeted, it tells you who originally tweeted it. If a tweet has been replied to, you can view the tweet of which it is a reply.