Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.36 KB

twitter.md

File metadata and controls

34 lines (20 loc) · 1.36 KB

📚 https://twitteroauth.com/

  1. register on developer.twitter.com
  2. on your developer dashboard you should see a Default project with a Project app

Customize the app. From Settings, run User authentication settings

screenshot

Set:

  • App permissionsRead and write
  • Type of AppWeb app (Confidential client)
  • Callback URIhttps://example.com (literally)

screenshot

Save, go back to the app and switch to Keys and tokens.

Check the Access Token and Secret: it must read

Created with Read and Write permissions

screenshot

Now copy the variables to your local .env file and set the values from the Twitter app.

You can now post a message on the page with

$messenger->sendMessage($messageText)`

👉 Check the example here