I'm learning the FB api and I need assistance with one issue. I'm attempting to prepopulate the message with data from my application. Seems the message property is now ignored. Can some offer me a solution to this issue? I've read somewhere that creating your own dialog and using facebook.request(path, bundleWithMessage, "POST"); would do the trick. Can someone post a snippet for me to see? I'm researching the docs, but don't see examples, and I'm not sure what path refers too, assuming the graph-api. Sorry for the noob question, any help is appreciated.
On July 12, we are ignoring the message parameter in Feed Dialogs. This eliminates the ability to pre-fill stream stories (prohibited by Policy IV.2).
https://developers.facebook.com/blog/post/510/
Related
I'm trying to implement "ask life", "send life" features in my game. Now I'm stuck with facebook-unity sdk. I was able to send simple requests with FB.AppRequest, but can't figure how to send requests with OGActionType.SEND and OGActionType.ASKFOR types. As I figured out, I need to send objectId of the object that i want send to another player. But, I can't figure out how to add it. Object browser in facebook developer dashboard doesn't contains button for adding new object
I found another question, where mentioned that 2.8 FB api doesn't support creation of new objects: Add new object with facebook developer api v2.8
So, I have 2 main questions currently:
Is it possible to implement "send life" feature with facebook-unity api ?
If yes, can I do something to add facebook OG object or there is another way to do it?
Yes, it is possible to do what you want, and I believe OG objects are the way to do it. I wrote a tutorial a while back on how to achieve just this, since it took me a while too to figure it out.
Hope it helps you!
http://www.bigfootgaming.net/blog/tutorials/facebook-open-graph-objects-in-unity3d/
I am trying to build an android app for which i was going through the hackerrank api documentation. This is the general format of the request to be made :
api.hackerrank.com/checker/submission.json -d 'source=print 1&lang=5&testcases=["1"]&api_key=yourapikeyfoobarbaz'
I pasted my key and made the request but got the error "The URI you submitted has disallowed characters"
The documentation however shows that proper response has been obtained.
This is the link to the documentation : https://www.hackerrank.com/api/docs
Since i am new to android development i am not able to figure out my fault. Can someone please guide me.
In my Android app I use the Temboo library to post on user's Facebook wall. Everything is OK except when the message contains non-ASCII characters. For example, if I try to publish the String "Oído", I get on Facebook: "O�do". I suppose I would need to set the charset for the Temboo library (if UTF-8 is not the default charset), but I find nothing on the documentation or I am missing something.
I work at Temboo. We made some updates based on your question so encoding should work fine for you now. Please try again and let me know if you're still seeing the issue.
If you ever want to ask us questions directly, the best approach is to contact us via email:
support#temboo.com
We're always available and happy to help.
Hello all and first thing to apologize for my poor English.
I wanted to comment my problem on the attempt of the integration retweet on my android application.
So far I managed to authenticate with OAUTH and even I have been able to send a tweet.
My problem starts when I want to be able to send retweet from a ID that I have saved in a class.
I have tried almost everything, Ive been dozens of hours looking for information on this, but without knowing if I on the right track.
trying to create a getRetweetsById function
trying to make http GET to the address:
https://API.Twitter.com/statuses/retweets/21943348.json
... getting the same response in all cases
It doesnt work.
If someone could guide me which is the appropriate method and the steps i should follow I would be eternally grateful.
Thanks and best regards
hey try following code
Twitter mTwitter = TwitterFactory.getInstance();
mTwitter.retweetStatus("send ur id here");
thanks
santhu
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.