I've already added the Facebook like-button, the Google +1 button and now i'm adding the Twitter Tweet button but noticed that it doesn't make use of any the opengraph metatags i've embedded in the <head> of my page while facebook and google do.
How can i make the Tweet Button use the data from my OpenGraph metatags so i don't need to add redundant data to my page just to get the tweet button to work correctly?
Currently Twitter doesn't support any kind of tags . See https://dev.twitter.com/discussions/1244 . However you can add a picture and location through the media API https://dev.twitter.com/docs/api/1/post/statuses/update_with_media
There are some kind of "automatic" integration but only for big players such amazon.com , youtube.com etc ... Try to tweet a link with any amazon product and the tweet will automatically get populated with additional info such a picture, add to cart button etc .
Related
Hi I'm planning to using twitter share button to share a specific tweet with hashtags and tags. Twitter Share Button Doc here details how to use the button using anchor tag, but how do I know if the user really post it or just clicked it ?
I am working on TwitterKit in iOS SDK. I am showing TimeLine tweets for a user in tableview cell.
User want to delete a tweet posted by others from his/her time line but I am getting following error
Twitter API error : You may not delete another user's status. (code 183)
On search I found following link
Link saying 'The authenticating user must be the author of the specified status'
Can anyone suggest how to remove a tweet posted by others from user timeline. Is there any API to hide the tweets from TimeLine?
Please suggest.
There is no way for a user to delete the Tweet(s) of another user. You would have to implement some custom view handling to remove table cells from the timeline.
I need to display facebook feeds in ios. For example I need to display the feeds of "https://www.facebook.com/Google" in a view.
I followed this link but the solution here displays only the full page? Is there any other way to display the feeds alone? without asking for login?
To get feeds from a Facebook page, you can use FacebookGraphAPI.
You don't need to LogIn to get the feeds, you can fetch the feeds from a page by using the url:
https://graph.facebook.com/Google/feed?access_token=YourAcessToken .
Replace the 'YourAccessToken" with a real access token which you can get by registering your application at developers.facebook.com.
This will return a JSON which you can parse and get the feeds.
Regards
NB:
Here, in this sample URL I had used "Google" as the facebook page name for your requirement, you can change it with the name of the page from which you need to get feeds.
At the moment, using the requests dialogue I can get a multi-friend selector come up when I want the user to invite their friends to my application (that's when the "to" parameter isn't defined). On Chrome / Safari - this is a new window, but is there any way of having all of the users friends already selected?
Otherwise - is there a way to put together a request / invite to all of the users friends? I've tried getting an array of all the user's friends id's into the "to" parameter, but that gives an error on FB.
I've seen a few applications on facebook that do make it possible for the user to "select all" or "invite all" of their friends - http://blog.fbsocialapps.com/2011/10/5-ways-to-tune-your-requests-to-improve-the-virality-of-your-facebook-application/
Edit - As mentioned in the comments, I'm doing this on RoR using the omniauth gem + JS SDK. I was hoping that someone may have come across this problem, and can share a solution. My intentions are not to spam, but make it easier for the user to share the application if it's worth sharing.
Basically what the apps mentioned on the site you posted are doing is to use a custom friend selector (See also: Requests Pro-Tips, Pro-Tip 2: Create a Custom Multi-Friend Selector).
This is pretty easy and straight-forward – read the list of the users friends, generate the kind of HTML you’d like them to be displayed with (a Form, an UL, IMG elements with the friends profile picture, Checkboxes to select friends, …). If you don’t want to use the JS SDK, you can do that (reading friends list + generate the HTML) server-side as well in your RoR app.
Only the part where the user can select all friends at once is probably best done client-side – loop through all the HTML elements representing the listed friends, and check the checkboxes via script. Pretty easy if you are for example using jQuery or something.
(Of course this could also be done by just having a checkbox labeled “send request to all friends”, and see if this is checked server-side and then send request to all friends – but that would not provide direct feedback that all friends are selected now to the user on the page.)
Then you could just send the form with all/some friends marked in it to your server-side app, generate the URL for the request dialog there and put the friend’s ids into the toparameter, and redirect the user’s browser to it.
We just included a pure HTML link for the tweet functionality instead of the twitter button. Now we want to enable the user to tweet an image together with his tweet.
When you manually tweet an url from instagram or flickrm, twitter automatically adds the "View photo" function below the tweet? How did I get that on my page?
I already found out, that both instagram and flickr use og properties. My guess was, that I have to add those properties to my page. But even adding those properties does not trigger the "View photo" link on twitter.
Is there some documentation about how to get it working? I didn't found anything in the API docs.
The View Photo link on Twitter is not related to OpenGraph. The photo provides are approved by Twitter so it automatically adds the View Photo link to tweets that include one of those services. If you want the View Photo link in your tweets, consider uploading photos using the TwitPic API or similar.