Integrating other social networks: Difference between revisions

From diaspora* project wiki
(Check and refresh Facebook app creation instructions)
m (diaspora.toml)
 
(27 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{Out of date}}
{{Note|1=I'm not sure the info here is still correct. At least for facebook I think I remember things have changed..? Please check and, if it's still correct, remove these templates. Also, it might be useful to link this page on the main page, in the "podmin resources" list(?) --[[User:Waithamai|waithamai]] <sup>[[User talk:Waithamai|talk]]</sup> 01:21, 30 August 2017 (UTC)}}
== General ==
== General ==


Keys will be entered into your config/diaspora.yml
Keys will be entered into your config/diaspora.toml


== Twitter ==
== Twitter ==
Line 15: Line 18:
** There is a Captcha ;)
** There is a Captcha ;)
** Click “Create Twitter application”
** Click “Create Twitter application”
* You now can see your consumer key and your consumer secret, copy them to the right places in <tt>config/diaspora.yml</tt>
* Click the “Permissions” tab and change the “Access” to “Read and Write”.
* Go to Settings and change the “Application Type” to “Read and Write”.
* Click the “Keys and Access Tokens” tab.  You now can see your “Consumer Key” and your “Consumer Secret”, copy them to the right places in <tt>config/diaspora.toml</tt>
* Restart Diaspora on your sever <br>(You can skip that if you plan to also add support for more services. Just remember to do it once you're finished with all of them.)
* Restart Diaspora on your sever <br>(You can skip that if you plan to also add support for more services. Just remember to do it once you're finished with all of them.)
* You’re done. It’s now possible to post to Twitter from your pod :)
* You’re done. It’s now possible to post to Twitter from your pod :)
Line 22: Line 25:
== Tumblr ==
== Tumblr ==


* Goto [http://www.tumblr.com Tumblr] and sign up. If you already have an account get sure you’re signed in.
* Goto [http://www.tumblr.com/oauth/register Tumblr Apps] page
* Goto [http://www.tumblr.com/oauth/register this page]<br />
** Enter your Application Name (eg. “Diaspora at social.example.org”)
[[Image:Services_tumblr.png|thumb|300px|Create an app on Tumblr]]
** Enter the Application website (eg. https://social.example.org)
** Give it a name
** Enter the Administrative contact email address
** Set the application website to your pod URL or a page that describes what Diaspora is and what your pod has to do with it
** '''Important:''' Set the “Default callback URL” to your pod url (including http/https)+ <tt>/auth/tumblr/callback</tt> So if your pod is located at <tt>https://social.example.org</tt> enter <tt>https://social.example.org/auth/tumblr/callback</tt>
** Give it a description
** You can upload an Icon if you wish
** Enter an email address
** '''Important:''' Set the “Default callback URL” to your pod url (including http/https)+ <tt>/auth/tumblr/callback</tt> So if your pod is located at <tt>http://example.org</tt> enter <tt>http://example.org/auth/tumblr/callback</tt>
** You can upload an icon but that’s optional
** Click register
** Click register
* You’ll be redirected to the [http://www.tumblr.com/oauth/apps application overview] where you can see your consumer key. After a click on “Show secret key” you can see your consumer secret. Paste your consumer key in the <code>key</code> setting in <tt>config/diaspora.yml</tt> and your secret key in the <code>secret</code> setting.
* You’ll be redirected to the [http://www.tumblr.com/oauth/apps Application Overview] where you can see your "OAuth Consumer Key". Click on “Show secret key” to reveal your Secret Key.
* Restart Diaspora on your sever (you can skip that when you want to also add support for more services)
* Copy your OAuth Consumer Key and your Secret Key App to your <tt>config/diaspora.toml</tt>
* Restart Diaspora on your server
* You’re done. It’s now possible to post to Tumblr from your pod :)
* You’re done. It’s now possible to post to Tumblr from your pod :)


== Facebook ==
== Wordpress ==


* Goto [http://developers.facebook.com/setup/ Facebook] developers page and click "New application"
* Go to the [https://developer.wordpress.com/apps/ Wordpress.com Developer Site] and click "Create New Application"
* Choose a name, for example “Diaspora at social.example.org”, a namespace and a category [[Image:FacebookApp01.png|thumb|300px|Create an app on Facebook]]
* Add a name, a description (like "This application allows to post from the diaspora* social network to wordpress.com or any wordpress blog with jetpack enabled.") and the URL of your pod (eg. https://social.example.org)
* Fill the captcha
* '''Important:''' Set the “Redirect URL” to your pod url (including http/https)+ <tt>/auth/wordpress/callback</tt> So if your pod is located at <tt>https://social.example.org</tt> enter <tt>https://social.example.org/auth/wordpress/callback</tt>
* Copy your App ID and your App Secret to your <tt>config/diaspora.yml</tt>
* Answer the Captcha
* Click 'Settings' [[Image:FacebookApp02.png|thumb|300px|Facebook app settings]]
* Choose the type "web"
* Add your domain to "App Domains" and your email to the "Contact Email"
* Click on "Create"
* Click "Add platform" and choose "Website", add URL to pod (same URL for mobile)
* Visit the [https://developer.wordpress.com/apps/ MyApps] page and select your new App
* Click "Save changes"
* Copy your Client ID and your Client Secret to your <tt>config/diaspora.toml</tt>
* Click "Status and Review" and change "Do you want to bla bla publish to general public?" to YES
* Restart Diaspora on your server
* Restart Diaspora on your server
* You’re done. It’s now possible to post to Facebook from your pod
* You’re done. It’s now possible to post to Wordpress from your pod


=== Privacy of posts to Facebook ===


Any posts a user makes from a pod to Facebook will be made with the privacy level that the users sets on Facebook side when the user authorizes the diaspora* pod application. Posts done from diaspora* do not follow the privacy of selected aspects on diaspora* side. This behaviour is consistent with posting to Twitter etc where the target application governs the privacy of the post.
== Troubleshooting ==


== Wordpress ==
When thing goes wrong, sometimes the solution is very simple. Take a look at some known issues.
 
=== Twitter and Tumblr ===
 
==== Server date and time ====


* Go to the [https://developer.wordpress.com/apps/ Wordpress.com Developer site] and create a new application
Authentication methods for Twitter and Tumblr use timestamps. If your server time and timezone are not set as expected, then the hash is generated incorrectly and it won't work.
* Add a name, a description (like "This application allows to post from the diaspora* social network to wordpress.com or any wordpress blog with jetpack enabled.") and an url.
* Set callback url to http://[your pod]/auth/wordpress/callback (tip: Wordpress doesn't let you specify a callback url beginning with localhost when you first create the app, but (for now, anyway) you can create the app with any url you want, and then edit it later to use a local url.)
* Choose the type "web"
* Edit the following lines in <tt>config/diaspora.yml</tt>:
<tt>
  wordpress:
    enable: true
    client_id: 'app_client_id'
    secret: 'app_secret'</tt>
* It is now possible to cross-post to any Wordpress.com or Jetpack-enabled Wordpress.org blog.


[[Category:Podmin]]
[[Category:Podmin]]
[[Category:Github transfer done]]

Latest revision as of 23:09, 9 June 2024

Out of dateOut of date:This page's accuracy may be compromised due to out-of-date information. Please help improve the page by updating it. There may be additional information on the talk page.
NoteNote:I'm not sure the info here is still correct. At least for facebook I think I remember things have changed..? Please check and, if it's still correct, remove these templates. Also, it might be useful to link this page on the main page, in the "podmin resources" list(?) --waithamai talk 01:21, 30 August 2017 (UTC)

General

Keys will be entered into your config/diaspora.toml

Twitter

  • Go to https://apps.twitter.com and sign in
  • Click on ‘Create an app’
    Create an app on Twitter
  • Register your app
    Register your app
    • Give it a name. For example "Diaspora at example.org"
    • Give it a description
    • Set the application website to your pod URL or a page that describes what Diaspora is and what your pod has to do with it
    • Important: Set the callback URL to https://your_pod/auth/twitter/callback, replacing your_pod of course.
    • There’s a ToS to accept
    • There is a Captcha ;)
    • Click “Create Twitter application”
  • Click the “Permissions” tab and change the “Access” to “Read and Write”.
  • Click the “Keys and Access Tokens” tab. You now can see your “Consumer Key” and your “Consumer Secret”, copy them to the right places in config/diaspora.toml
  • Restart Diaspora on your sever
    (You can skip that if you plan to also add support for more services. Just remember to do it once you're finished with all of them.)
  • You’re done. It’s now possible to post to Twitter from your pod :)

Tumblr

  • Goto Tumblr Apps page
  • You’ll be redirected to the Application Overview where you can see your "OAuth Consumer Key". Click on “Show secret key” to reveal your Secret Key.
  • Copy your OAuth Consumer Key and your Secret Key App to your config/diaspora.toml
  • Restart Diaspora on your server
  • You’re done. It’s now possible to post to Tumblr from your pod :)

Wordpress

  • Go to the Wordpress.com Developer Site and click "Create New Application"
  • Add a name, a description (like "This application allows to post from the diaspora* social network to wordpress.com or any wordpress blog with jetpack enabled.") and the URL of your pod (eg. https://social.example.org)
  • Important: Set the “Redirect URL” to your pod url (including http/https)+ /auth/wordpress/callback So if your pod is located at https://social.example.org enter https://social.example.org/auth/wordpress/callback
  • Answer the Captcha
  • Choose the type "web"
  • Click on "Create"
  • Visit the MyApps page and select your new App
  • Copy your Client ID and your Client Secret to your config/diaspora.toml
  • Restart Diaspora on your server
  • You’re done. It’s now possible to post to Wordpress from your pod


Troubleshooting

When thing goes wrong, sometimes the solution is very simple. Take a look at some known issues.

Twitter and Tumblr

Server date and time

Authentication methods for Twitter and Tumblr use timestamps. If your server time and timezone are not set as expected, then the hash is generated incorrectly and it won't work.