How to get facebook posts on twitter
How to Post Facebook Posts Automatically to Twitter
by Mel Hawthorne 12 Comments
Social media engagements are one of the main ways companies and businesses engage with their customers these days – and both Facebook and Twitter are important tools for this type of engagement.
Despite this, reposting everything you share on Facebook on Twitter is time-consuming and often impractical. Thankfully, you can automate this fairly easily – by setting up an automatic cross-posting function.
Here’s how to do that:
-
Confirm Facebook settings
In order to be able to do this, you need to make sure that a few settings are correct on your Facebook. First off, you need to make sure your app platform is turned on so that other apps can connect to it. Go to your Account settings, followed by General Account Settings. Click on Apps on the left side to get to app settings – here, the platform option needs to be set to On.
The other thing you need to confirm is the privacy setting of your posts themselves. In order for them to be cross-postable, the individual settings for it need to be switched to Public. You can do this manually on each post, or via the Privacy settings page.
-
Link your accounts
The next step is to connect your accounts. Go to the URL http://www.facebook.com/twitter. Click on the green Link My Profile to Twitter button. You can link multiple Facebook pages to your Twitter site – just enter your username and password in the relevant fields.
Click on the Authorize App button. When the authorization is complete, you’ll see a list of all the types of posts that can be posted directly to Twitter. By default, all possible posts are selected, but you can easily turn off the ones you don’t want posted here. Make sure that the checkboxes match what you want to post (or not to post).
-
Activate the cross-posting
When you are done, click on Save Changes. As soon as you do, the cross-posting starts, and any and all future posts that match the criteria you set will automatically posted to your Twitter.
Tip: While you can, of course, share pictures and videos, the actual files won’t be cross-posted – instead, Twitter will post a link to the original Facebook image or video. Contrarily, hashtags attached to Facebook posts WILL be carried across to Twitter.
Ending the cross-posting
There are two ways to end the cross-posting if you no longer want it. You can either do it on Twitter or on Facebook. For the former, log into your Twitter and go to your settings. Under the Apps section there, you’ll see a list of all the apps that can access your Twitter – including Facebook. Simply revoke access there, and the auto-posting will stop. If you want it back, you can either set it up from scratch or if you haven’t left the Apps page yet, you can click the Undo revoke access button there. Be aware that once you have closed or left that page, the undo button will no longer be there and you will have to set it up from scratch after all.
The other option is to revoke access via Facebook. Go back to the http://www.facebook.com/twitter page, and you’ll be able to turn off auto-posting for post types. By turning it off for all types, there will effectively be no more posting. You can turn it back on any time. If that’s not enough, you can unlink Facebook from Twitter as well – by clicking on the Unlink from Twitter button on the http://www.facebook.com/twitter page.
Tip: It doesn’t matter whether you unlink from Facebook’s side or from Twitter’s – the effect is the same. It’s NOT necessary to do both – in fact, it isn’t possible. Once you have unlinked one, the option to do so disappears from the other.
Filed Under: Internet Tagged With: facebook
Reader Interactions
What Is the Best Way to Share Facebook Posts on Twitter?
- Home
- Movie Maker Tips
- What Is the Best Way to Share Facebook Posts on Twitter?
By Jocelin | Follow | Last Updated
Have you ever thought about how to share Facebook posts on Twitter? You'll see a very easy way here.
What is the best way to share my Facebook posts on Twitter? This article from MiniTool will show you how to post to Twitter automatically from Facebook.
Nowadays, Facebook and Twitter play a significant role in social media interactions, which are one of the most common ways for businesses to communicate with their customers.
Even though it often requires a lot of time and effort to share Facebook posts on Twitter. Fortunately, you can easily automate the process by using an automatic cross-posting feature.
How to Share Facebook Posts on Twitter?
Here is a short guide on how to share Facebook posts on Twitter.
- To share a post, you can click the timestamp at the top of the Facebook post. By doing so, you will be taken to the personal page of the Facebook post.
- Check to see if your Facebook post can be shared.
- Copy the URL from the browser address bar of the personal page.
- Paste the URL into a tweet.
- Post your tweet.
To encourage your followers to read your posts when you share your Facebook posts on Twitter, you can write an eye-catching headline.
How to Automatically Post Facebook Posts to Twitter?
Can I share my Facebook posts on Twitter if they aren't linked? This part will show you how to post to Twitter automatically from Facebook.
1. Check Facebook Settings
You need to confirm that a few settings on your Facebook app are configured correctly. To begin with, you can check if your app is activated for it to connect to other apps. From the Account Settings menu, you can go to General Account Settings. Then, you can tap on Apps on the left side of the screen to access the app settings. Last but not least, you must make sure that the toggle for the app option is set to On.
What you also need to confirm is the privacy settings of the post. To automate the process, you'll need to toggle each setting to Public. You can manually change the settings on each post or through the privacy settings page.
Also Read: [7 Easy Ways] How Can I Find My Old Facebook Account Quickly?
2. Connect Your Accounts
To link your account, you can visit the URL at http://www.facebook.com/twitter. Then, you can hit the green Link My Profile to Twitter button. And, you can share Facebook posts on Twitter and connect to several Facebook pages by typing your username and password in the corresponding areas.
Next, select the Authorize App button. Once authorized, you will receive a list of different posts that can be automatically uploaded to Twitter after being approved. Even if they are already selected and authorized by default, you can quickly remove any posts you don't want to share here. Finally, you can check to see if the checkboxes relate to what you would like to share.
3. Use the Cross-posting
After activating the cross-posting, select Save Changes. Once this is done, cross-posting will begin and the posts you want to share will be automatically posted to your Twitter account if they follow the set standard.
If you don't need to cross-post anymore, you have two options. It is possible to stop cross-posting on Twitter or Facebook.
On Twitter, you should log in to your Twitter account and then go to the settings. There is a list of every app that can access your Twitter under the Apps section. To end the auto-posting, just cancel access here.
On Facebook, you should return to the http://www.facebook.com/twitter site to end the auto-posting. The posts will no longer be automatically published if you disable this function. You can also turn it back on whenever you want.
It makes no difference whether you disconnect from Twitter or Facebook. Neither is required nor feasible. When you disconnect one, the option to unlink the other will be removed.
How to Tweet Facebook Posts from an iPhone?
The steps below will teach you to share Facebook posts on Twitter using your iPhone.
- Pick up posts you want to share on Facebook and click Share on your iPhone.
- Tap on Copy Click.
- Go back to Facebook to select photos and then click on Save Photo.
- Open the Twitter app on your iPhone and write a tweet.
- Paste the link.
- Tap on the Camera icon to select the saved photos on your iPhone.
- Click on “Who’s in this photo?” and Tag people.
- Click on Tweet. When you click the link here, you will be taken to the shared Facebook post.
Conclusion
This article discusses how to share Facebook posts on Twitter, how to automatically post Facebook posts to Twitter, and how to tweet Facebook posts from an iPhone. Try it right now!
About The Author
User Comments :
How to link Facebook and Twitter (link and broadcast news)
Integration of social networks is a useful and demanded function among active Internet users. For example, you can link Facebook and Twitter so that your posts are automatically duplicated without any additional steps. And to make it easier than ever. We provide detailed instructions below.
So, you already have working accounts in both social networks that you actively (or not very actively) use. Duplicate publications manually frankly annoying, so there is a great way to automate the process - to link existing profiles with each other. You can do this at least in one, at least in another social network. This is purely a matter of your convenience. We will show you both ways so you can choose the one that suits you best.
Method 1. Through Facebook
You can integrate a Twitter page with Facebook as follows:
1. Follow the special link https://www.facebook.com/twitter.
2. Click "Link my profile to Twitter" or "Link page to Twitter".
3. Click on "Authorize app".
Integration completed! Now it remains only to select the categories of messages that will be published on Twitter. By the way, this can be done at any time, so it is not necessary to set the parameters immediately.
Method 2. Through Twitter
You can also link Facebook and Twitter pages to each other through the second social network. It is also very easy to do this:
1. Log in to your Twitter account.
2. In the header of the page, click on your avatar and select "Settings".
3. Go from the menu column on the left to the "Apps" section.
4. Click Connect to Facebook.
5. In the window that appears, click "Ok" to link the accounts.
Now you can broadcast news on two "channels" at once. By the way, there is also a choice of published content. You might want to share only photo album updates, or maybe it's more important for you to share information from your Facebook account wall. In any case, you can edit the published categories at any time. And remember one detail of yours - only those posts that you have designated as public are duplicated. The private ones will remain private; intended for certain categories of users.
In addition, you can not link profiles to each other, but simply post a link to your Twitter account on FB. It is done like this:
1. Log in to Facebook using your account information.
2. Go to your profile page, and then click on the "Information" section in the profile header.
3. Go to the "Contact and basic information" section, click "+ Add other accounts".
4. Select Twitter and enter your Twitter name.
Your guests and friends can now see a working link to your Twitter in the Info section of Facebook.
Thus, the integration of the two most popular social networks is carried out in a matter of minutes. Everything is simple, fast and very convenient! Try!
- Setting up Facebook ads
- Facebook ad formats
- Facebook Blueprint - beginner SMM courses
- Facebook Business Web App
From Facebook - to Livejournal, Twitter & Vkontakte, crossposting in source codes and comments / Sudo Null IT News , ready to start on your accounts.
The reason for writing the scripts was to get the ability to search through your records - a feature that Facebook cannot launch as part of its service, as well as the "revitalization" of its LiveJournal. Since access to any posts on Facebook requires mandatory authorization, the service apparently does not allow search robots. Specifically, in my case, this is inconvenient: the links, videos and thoughts that I publish on the social network, I often publish “for the future” - and often the moment comes when this information becomes necessary, but it is almost impossible to find it.
Also using the scripts posted here, it was possible to Move archive of existing Facebook posts : More than 2000 archived posts from my Facebook moved to LiveJournal with corresponding dates. That is, if you have not yet had a LiveJournal, you can immediately fill it with information for the entire time.
Also in the article I post ready-made scripts in Perl , using which you can broadcast Facebook statuses to Livejournal, and from there, if you have the appropriate settings, to Vkontakte, Twitter and RSS, and using additional web services - to almost all blog -engines.
It so happened that I left LiveJournal for Facebook two years ago. This was due to a bunch of problems in LiveJournal itself, slowdown in the development of the service, and, as a result, the mass departure of my friends from there to the blue-and-white social network.
At the same time, LiveJournal remains the only open blog platform with a flexible post format that does not impose significant technical restrictions on the size of a post or on its design. There are still a lot of interesting personalities in LiveJournal, many of whom are my friends.
A very big advantage of LiveJournal was its openness to search engines. What I wrote on the blog, I can then find through the "search engines", and in practice the Yandex or Google index is updated a few minutes after the publication of the post. Understanding that your article, note or find can be useful not only to your friends, is a good motivation to write this useful thing there again and again. However, the same logic works for Habra.
I studied cross-posting services that allow you to automatically post a message to several social networks. Unfortunately, none of them were found. Almost everywhere they are forced to write a post in a special interface, or LiveJournal is used as the main place, which is inconvenient for me personally. The startup IFTTT.com turned out to be the most curious service, allowing you to create universal rules like “appeared on Twitter - send by SMS”, “Appeared on Facebook - send to Twitter”, “It’s going to rain – warn by SMS”, etc. Yes, it can be adapted for some needs, but it still doesn’t know how to post from Facebook to LiveJournal. All cross-posting services have one big drawback - they are too versatile and poorly customizable, and rare of them include popular Russian social networks. The same LiveJournal in the list is extremely rare. And if you can get a post in LiveJournal through RSS, then you can send it there only through the API.
There is another reason. I want to be able to control what is fasting where depending on the content. For example, I may consider it necessary to automatically publish a photo in LiveJournal, and not a link to it. Or transfer the entire post to Twitter, and not a link to it, as many services do. To do this, I should be able to fix the script myself, according to my needs.
As a result, the goal was to cover the social networks Twitter, LiveJournal, Facebook and Vkontakte, leaving Facebook as a "launching pad" for the post. Since LiveJournal itself can post on Vkontakte and Twitter, as well as export posts to RSS for integration with Drupal, the following scheme has emerged:
Facebook has, in my opinion, the most chic API. This interface allows you to do anything with the data that you enter into the social network - receive it in a structured form, change or delete it through a lot of convenient mechanisms, FQL, HTTP requests. And against this background, the relatively small number of third-party applications that work with Facebook surprised me.
In addition to using the API, I also tried parsing the pages of a simplified mobile version of Facebook - this allowed me to pull out more information than the API gives. In some cases, this is quite a useful mechanism. In this case, it was possible to completely manage with standard features.
Everything turned out fine for Perl libraries: for Perl on CPAN, several modules were found that implement work with Facebook, but due to the simplicity of the protocol, there is little need for them. Request data is passed via URL, the result is returned in JSON. As for LJ, it has several different APIs, of which LJ XML-RPC is the simplest. I used a ready-made Perl module that implements a fairly stable work with LJ - LJ::Simple.
Facebook is accessed through an access token received by an external application for a limited time with limited rights. The decay time of the session and the received access_token is measured from 2 to 25 hours. It is possible to get a long-live token with a lifetime of up to 60 days. Logically, you need to update the access_token after it goes bad every time - after 5 days it will happen or after 60. In the above scripts, automatic updating is not provided, as is the notification that the access token is bad.
The second feature is that your messages are available on the wall along with the messages of other users, and if you don’t think about the fact that only yours should cross-post, other users may have the opportunity to publish something on your LiveJournal via Facebook That. By default, on Facebook, all your friends have the opportunity to post anything on your wall, especially the opportunity to receive a cloud of comments from friends on someone else's photo in which you are "tagged". If you do not enable moderation of other people's messages on the wall, then with the advent of cross-posting, these photos will also go beyond Facebook.
Some Facebook posts are "uninformative" - like some messages sent by applications. Crossposter can filter them and not transfer them to Livejournal, but here everyone customizes it for themselves, of course. Some posts deliberately take on a different look: for example, a photo turns from a link to Facebook into a large photo embedded in a LiveJournal post.
It is also necessary to take into account the need to set the “backdate” flag when publishing a post backdated on LiveJournal. There is a special constant for this at the beginning of the script. The peculiarity lies in the fact that if you publish a post in LiveJournal for March 2011, then it is placed in the friends feed as fresh (albeit with the old date), and when linked to Twitter, it is published in it as fresh. If you put a special checkmark in the interface, or set the backdate property via the API, then it is excluded from the friends feed. To transfer the archive, setting backdate is a must, then you can turn it off.
Well, you need to remove the connection with Facebook, otherwise you will get a closed loop (there is protection in the script just in case).
Here I publish scripts developed in the process of research, a kind of proof of concept. They are also adapted for publication as part of an article - for example, general database connection parameters are not placed in separate files, the code is not divided into functions and files, unimportant ones are removed, etc.
The crossposter architecture involves two-stage work: saving intermediate results in the database and exporting records from the database to LiveJournal. In the future, this database can be used as an independent database, also having local data, it is easy to add scripts for export to other social networks, RSS.
The facebook.pl script is used to save to the database. Its purpose is to get a page from the Facebook wall and, if there is a next page, give out its ID, if not, give out "all done". The identifier is a script parameter, so to load the next page, you need to call the script with this identifier, etc., until we get all done in response.
Please note that for facebook.pl to work, you need to change the database connection parameters, the identifier of your journal in LiveJournal, and also enter an access_token. For debugging, you can generate a short-lived access token in the Facebook Graph API Explorer. In order to get access for 60 days, you need to create an application, get the AppId and SecretId, then generate an access token using the link provided, selecting this application from the drop-down list. Pay attention to the list of rights - the lack of some checkboxes can limit access to posts on your wall: for example, reshares from other users or photos or something else will no longer be visible to an external application. If you are not afraid to leave extra accesses in scripts, it is better to put all the checkboxes in general.
Update_lj.pl script is used for posting on LiveJournal from the database. This article uses its debug version - it takes one vacant post prepared earlier by facebook.pl from the database, sends it to LiveJournal, returns the page ID on LiveJournal, and marks the post as submitted. This is an intermediate version, and I leave it here, because in case of any problems, deleting posts created by the script from LiveJournal is very, very inconvenient.
In the event that LiveJournal has been replenished with a bunch of automatically created erroneous posts, you can selectively edit, delete or change properties using the lj_change.pl script given at the end of the post.
As a result, to transfer the archive, you need to go through all the pages with a bash script that calls the required number of times facebook.pl, and then execute updatelj.pl as many times as you have records in the database. To regularly update facebook.pl, it is enough to call cron once an hour or once a day, then call updatelj.pl with a similar bash script.
I will be glad to any comments and additions, as well as to those enthusiasts who want or can make an external universal service out of this.
CREATE TABLE `myposts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ctime` datetime DEFAULT NULL, // creation time `message` text, // post itself `link` text, // link to the post `picture_fb` text, // picture for the post `posted_to_lj` int(11) DEFAULT NULL, // was it posted on LiveJournal? `lj_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, // LJ upload time `lj_item_id` int(11) DEFAULT NULL, // identifier in LJ (internal) `lj_anum` int(11) DEFAULT NULL, // journal constant linking item_id and html_id `lj_html_id` int(11) DEFAULT NULL, // identifier in LJ (external, the one before .html) `user` varchar(50) DEFAULT NULL, // user (to use database for multiple users) PRIMARY KEY (`id`) )
#!/bin/bash #to create an archive NEXT=`./facebook.pl`; echo $NEXT; while [ "$NEXT" != "all done" ] do NEXT=`$NEXT`; echo $NEXT; done
Show original text facebook.pl
#!/usr/bin/perl
use open qw(:std:utf8);
use LWP::Simple;
use YAML::Tiny;
use JSON;
use URI;
use DBI;
use DBD::MySQL;
$DB_LOGIN = "========DB-USER==========";
$DB_PASS = "========DB-PASS==========";
$DATABASE= "======== DB-NAME ==========";
$USER = '========YOUR-LJ-USER==========';
my $access_token = '========YOUR-ACCESS-TOKEN-SEE-GRAPH. FACEBOOK.COM-FOR-THE-DETAILS==========';
# ARGV[0] is the value which facebook places into its next page URL as the value of its "until" CGI parameter
$until = $ARGV[0];
my $dbh=DBI->connect("DBI:mysql:database=mysql;host=localhost", $DB_LOGIN, $DB_PASS) || die "Error connecting to database: $!n";
$dbh->do("use $DATABASE;");
# next four lines are for facebook graph api request
my $uri = new URI('https://graph.facebook.com/me/feed' );
$uri->query_form( {access_token => $access_token, until => $until, base_amount=>1, value=>1 });
my $resp = get("$uri");
$resp = defined $resp ? decode_json($resp) : undef;
$next = $resp->{paging}->{next};
$next =~ /until=(.+)$/;
$until = $1;
# as a result of the script I've decided to show either all done message or bash command for the next iteration. It looks a bit queer…
if ($until != "") {
print"./facebook.pl".$until. "n";
} else
{
print "all done";
}
# updating database
for my $post (@{ $resp->{data} }) {
$ctime = $post->{created_time};
$ctime =~ /(dddd)-(dd)-(dd).(dd):(dd):(dd)/;
($y,$m,$d,$h,$i,$s) = ($1, $2, $3, $4, $5, $6);
$time = "$h:$i:$s";
$sqltime = $y.$m.$d.$h.$i.$s;
$message = $post->{message};
$link = $post->{link};
$picture = $post->{picture};
$sql = "select * from myposts where user='$USER' and ctime='$sqltime'";
$sth = $dbh->prepare($sql);
$sth->execute;
if ($sth->rows == 0) {
$sql = "insert into myposts set user='$USER', link=".$dbh->quote( $link ).", picture_fb=". $dbh->quote( $picture ).", message=". $dbh->quote( $message).", ctime='$sqltime'";
# the following line is intended for filtering twitter-like posts. I've decided to skip them because the majority of them are the the links to the existing facebook or livejournal posts.
if ($message !~ /t.co//) {
$dbh->do($sql);
}
}
}
Show update_lj source
#!/usr/bin/perl
use LJ::Simple;
use Date::Manip;
use DBI;
use DBD::MySQL;
$USER = '========YOUR-LJ-USER==========';
$DB_LOGIN = "========DB-USER==========";
$DB_PASS = "========DB-PASS==========";
$LJ_NAME = "========LJ-USER==========";
$LJ_PASS = "========LJ-PASS==========";
$DATABASE = 'facebook';
$DEBUG = 1;
# it's extremely important to set the following constant to "1"
# if you've decided to migrate all the old records using this script.
$HIDE_FROM_FRIENDS_WALLS = 0;
my $dbh=DBI->connect(
"DBI:mysql:database=mysql;host=localhost",
$DB_LOGIN,
$DB_PASS,
) || die "Error connecting to database: $!n";
my $lj = new LJ::Simple({
user => $LJ_NAME,
pass => $LJ_PASS,
site => "livejournal. com:80",
});
(defined $lj)
|| die "$0: Failed to log into LiveJournal: $LJ::Simple::errorn";
$sql = "select ctime, UNIX_TIMESTAMP(ctime), link, message, picture_fb, id from myposts where user='$USER' and lj_html_id is NULL order by ctime desc limit 0,1;";
$dbh->do("use $DATABASE;");
@row_ary = $dbh->selectrow_array($sql);
if ($row_ary[0] == "") { exit; }
($ctime, $ctime_ts, $link, $message, $picture_fb, $id) = @row_ary;
$message =~ s/n/
/g; #preparing CRs for html
if($DEBUG){print$message."n"; }
#building the subject from the text of the post
$messagelength = length($message);
if ($messagelength > 50) {
$i = index($message."", "");
do {
$j = $i;
$i = index($message."", "", $i+1);
} while ($i < 50);
$subject = (length($message)>50) ? substr($message,0,$j)."…" : $message;
if ($DEBUG) { print "posting $subject. ..n"; }
my %Entry=(); $lj->NewEntry(%Entry) || die "$0: Failed to create new entry: $LJ::Simple::errorn";
# croppedlink
$croppedlink = (length($link) > 50?
(substr($link, 0, 50)."…")
:
$link);
# replacing the small picture with the big one
if ($picture_fb =~ /https://fbcdn/) {
$largepicture = $picture_fb;
$largepicture =~ s/_s/_n/g;
$entry="". $croppedlink . "
".
$message.
"
";
} else {
if($linkne"")
{
$entry="";
".
$croppedlink .
"
$message
} else
{
$entry="$messagenn$link
";
}
}
$lj->SetEntry (%Entry, $entry) || die "$0: Failed to prepare new post - $LJ::Simple::errorn";
$lj->SetSubject(%Entry, $subject);
$lj->SetDate(%Entry, $ctime_ts);
if ($HIDE_FROM_FRIENDS_WALLS) { $lj->Setprop_backdate(%Entry,1);}
my ($item_id,$anum,$html_id)=$lj->PostEntry(%Entry);
(defined $item_id)
|| die "$0: Failed to post journal entry: $LJ::Simple::errorn";
if ($DEBUG) { print "created item_id:". $item_id.", anum:".$anum.",html_id:".$html_id."n"; }
$sql = "update myposts set user='$USER', lj_ts=now(), lj_item_id = '$item_id', lj_anum = '$anum', lj_html_id = '".$html_id."' where id=". $id;
$dbh->do($sql);
Show source lj_change.pl
!/usr/bin/perl
useData::Dumper;
use POSIX;
use LJ::Simple;
useTime::Local;
use DBI;
use DBD::MySQL;
$LJ_LOGIN = "===========LJ-LOGIN============";
$LJ_PASS = "===========LJ-PASS============";
$DB_LOGIN = "===========DB-LOGIN============";
$DB_PASS = "===========DB-PASS============";
$DATABASE = "===========DATABASE============";
$operation= "..."; #setbackdate, purge …
my $dbh=DBI->connect(
"DBI:mysql:database=mysql;host=localhost",
$DB_LOGIN,
$DB_PASS,
) || die "Error connecting to database: $!n";
$dbh->do("use $DATABASE;;");
$sql = "select lj_item_id from myposts where lj_html_id is not NULL order by ctime desc;";
$results = $dbh->selectall_hashref($sql, 'lj_item_id');
foreach my $id (keys %$results) {
#$id2 = $results->{lj_item_id};
push @ids, $id;
}
my $lj = new LJ::Simple({
user => $LJ_LOGIN,
pass => $LJ_PASS,
site => undef,
proxy => undef,
});
(defined $lj)
|| die "$0: Failed to log into LiveJournal: $LJ::Simple::errorn";
print "logged on.