Topic-icon Need to Format Twitter Posts

Support Specialist
8 years 3 months ago #56696 by alzander
To insert an image into a post, at least on the website version of twitter.com, there's a "Media" button with a camera icon. From there, you can upload any file you want and have it show inside your post.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 3 months ago - 8 years 3 months ago #56698 by webdevtim
Well, what I was hoping is that I could update the image from the post from our website so that after posting everything from our website I could go to twitter and just update the image on the tweet to same image but uploaded directly to Twitter. I see that can't be done. I was also hoping that I could upload images to Twitter and get the Twitter link for that image and add that image to the {SCOpenGraph image=https://pbs.twimg.com/media/CZM0pdcWkAIzZZ-.jpg} That way the tweet would be opened and the image displayed when others tweeted the article from the website. But I don't see a way to do that. You mean the Bernie Sanders team is is tweeting everything from their twitter account?

Actually that makes no difference. I get this as a link after posting the twitter image from the website: o.twimg.com/2/proxy.jpg?t=HBhkaHR0cHM6Ly...kzyOauXAazbF6Ww4hAV4, which is both image and link back information. but still the tweet arrives collapsed even with the image from twitter in tow.
Last edit: 8 years 3 months ago by webdevtim.
The topic has been locked.
Support Specialist
8 years 3 months ago #56718 by alzander
Twitter's API does allow posting of images along with Tweets. However, it's not something we support in JFBConnect yet. It's not something that's ever been requested.

Actually that makes no difference. I get this as a link after posting the twitter image from the website: o.twimg.com/2/proxy.jpg?t=HBhka … bF6Ww4hAV4, which is both image and link back information. but still the tweet arrives collapsed even with the image from twitter in tow.

Not exactly sure what you mean here. Did you add that image as media to a Tweet and it's still not expanding? As far as I know, the only way to get it to autoexpand is to include the image in the Tweet.. not by linking to a page with the Twitter Cards set to that image. However, I'm out of my territory here. I know how to set Twitter Cards and how to Tweet, but not intimately familiar with what Twitter does under the hood in various scenarios.

Feel free to keep asking for advice, and we'll help however we can. I think we're getting past my knowledgebase and away from JFBConnect functionality in general though.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 3 months ago #56728 by webdevtim
I set an image in Twitter and then got the link to that image and used it as the {SCOpenGraph image=https://pbs.twimg.com/media/CZM0pdcWkAIzZZ-.jpg} image and I posted the article with that Easy tag using the "Create Post" method and noticed that Twitter still displayed the tweet closed even though the image that was set from which the link was derived was displayed opened.

I guess what I don't understand is how to attach an image to a tweet. Is there a way to do that in JFBConnect? I guess I really have to better familiarize myself with the Twitter API.
The topic has been locked.
Support Specialist
8 years 3 months ago #56756 by mel
Replied by mel on topic Need to Format Twitter Posts
No, JFBConnect does not currently support uploading media to Twitter. I can see the benefit for it and have added an issue to our tracker, but don't have a timeframe on when/if we'll add that feature.

In the meantime, here's the documentation: Status Updates to Twitter and
Uploading Media to Twitter .
The topic has been locked.
Active Subscriptions:

None
8 years 3 months ago #56758 by webdevtim
Thanks Mel, I will read those documents and make any changes that those documents suggest, but I think I just have to tell people where I am at that unless we want to post directly to Twitter, that our tweets will arrive in collapsed form. Also others tweeting our articles to their Twitter account will also have those tweets arrive in collapsed form and that is simply the policy of twitter and until twitter changes that policy, there is nothing that can be done about it.

You guys have been really great. I know I have asked a ton of questions and all those questions were answered insightfully and knowledgeably; I couldn't have paid for more, I really owe you guys a consultation fee.
The topic has been locked.
Support Specialist
8 years 3 months ago #56761 by alzander
It surprises many, but we love long threads like these. Its when our users try to do something outside what we have implemented or see something that another site is doing that it really helps us evaluate and understand what other social integration options are available. It helps us learn too.. so thank you :)

As always, if you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 3 months ago #56763 by webdevtim
Thanks so much Mel. I will read these two articles.

I will tell those that want me to make the posts to twitter from our URL understand that those kinds of posts arrive at twitter in their closed state and that only a change of policy by Twitter will change that behavior. Our only option is to post our tweets by hand. We can provide the Tweet button for our supporters to Tweet our articles to their accounts with the understanding that those Tweets will land on their Twitter account in the closed state. Once Opened the Tweets are as rich as Twitter allows.

One thing, Twitter allows up to four images to be connected to a Tweet. How would I add multiple images using Easy tags.

For adding a video, I would add tags like: {SCOpenGraph video.movie=link-to-movie}{SCOpenGraph video:actor=name-of-actor}, etc?

I am not sure how to add video to Twitter posts. I see the description of Media Entities at Invalid consumer key/secret in configuration , but I am not sure how to use these in JFBconnect. I know, more questions.

This is what is available for Twitter Cards:

twitter:player – HTTPS URL of player iframe – Used with player card

twitter:player:width – Width of iframe in pixels – Used with player card

twitter:player:height – Height of iframe in pixels – Used with player card

twitter:player:stream – URL to raw video or audio stream – Used with player card

Do we have Easy Tags for these? Twitter doesn't recognized the Open Graph tags for video. Would I use something like

{SCTwitterTweet player:width=1920}{SCTwitterTweet player:height=1050}{SCTwitterTweet player:stream=http://content.jwplatform.com/videos/MQ6z2tHb-NeeKXyma.mp4}{SCTwitterTweet player=http://content.jwplatform.com/libraries/A4cZR76S.js}

This would be the last question I have on this I think, because if I can include videos, our tweets will be pretty dynamic even it they are closed by default.

I have to say, you guys are awesome. I have asked a ton of questions and you have consistently provided informative knowledgeable responses and solved the issue every time, well almost every time. I really owe you guys a consultants fee for all the help you have provided.
The topic has been locked.
Support Specialist
8 years 3 months ago #56779 by alzander

One thing, Twitter allows up to four images to be connected to a Tweet. How would I add multiple images using Easy tags.

Just use multiple {SCOpenGraph image=xxx} tags and JFBConnect should add additional Open Graph and Twitter Card tags for each image.

For adding a video, I would add tags like: {SCOpenGraph video.movie=link-to-movie}{SCOpenGraph video:actor=name-of-actor}, etc?

Unfortunately, JFBConnect doesn't support additional Twitter tags like you're looking for. Right now, our Twitter Card support piggy-backs on our Open Graph tags, so we only support a sub-set of tags that Twitter allows and set them based on the Open Graph tag you are trying to set. For now, these are the only tags we support:
title, description and image
We also set the card type to 'summary'.

We have a few to-do's to add additional support for more Twitter Card data, but it hasn't been requested much at all before, so it hasn't been a high priority. We do have support for custom Open Graph tags where you can set whatever data you want. However, Twitter has a slightly different syntax.. they use
<meta name="..." content="...." />
Where Facebook uses property, like:
<meta property="..." content="..." />

You could *try* the following and it should be inserted using the property=".." tag and see if Twitter recognizes it, but I'm not sure if it will:
{SCOpenGraph twitter:player:width=1920}
Check the HTML that it's set and we can go from there. It actually should be pretty easy to add a line (or 2) of code to detect if twitter: is in the tag and change property= to name= and get you going.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
8 years 3 months ago #56787 by webdevtim
OK, will try that.
The topic has been locked.