Jump to content


Photo

New Plugin - Facebook


  • Please log in to reply
6 replies to this topic

#1 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4738 posts
  • Local time: 05:40 PM
  • LocationPeterborough, Canada

Posted 30 March 2020 - 03:31 PM

This plugin will post likes and watch information to a Facebook page.

 

This plugin will not post data to a person Facebook page, it will post to a page you create (either a business page or personal)

Note: Please let me know if I have completely bumbled the instructions below.

 

Step One:

 

Create the page from your Facebook Account:

 

5e8243c8b5b1b_stepone.png

 

 

5e8243dad8ac1_steptwo.png

 

 

 

Step two:

 

Once the page is set up you can open the plugin settings, and select the link to go to Facebook API setup.

 

5e824408829cc_stepthree.png

 

Step three:

 

5e8244af717bc_stepfour.png

The page above will ask you to login and link your account.

 

 

1. Select the follow permissions:

 

manage_pages

publish_pages

 

2. Under "User or Page" select the page that you have created

 

3. Press the "Generate Access Token" button.

 

 

This Access token (API Key) will only last a couple hours! This is not good enough!

 

We want a token that will never expire!

 

To do this we want follow these steps:

 

1.  Select the blue button beside your access token:

 

5e8245c6953a7_step5.png

 

2. Select "Open In Access Token Tool":

 

5e824633bb8dd_step6.png

 

3. Select "Extended Access Token"

 

5e82467fec678_step7.png

 

This will create an access token that will last 6 months, but that is still not good enough! We want an never ending Token.

 

3. Select the "Debug" button at the bottom of your screen:

 

5e82472478e43_step8.png

 

4. There is our access token that never expires!

 

5e824789a881f_step9.png

 

5. Copy and paste that into the Plugin Configuration Page and Press the Save button.

 

 

 

This is a beta plugin.

 

 

What the Page will do!

 

 

5e82483cb69ac_step10.png

 

 

 

5e82486dd8398_step11.png

 

 

 

 

 

DOWNLOAD : Attached File  Facebook.zip   5.95KB   2 downloads

 

 

Someone asked me to create this a while ago. There it is.

 

 

Note: The Facebook API Access Token can get a little messy. Just make sure that you have choosen your 'page' as the recipient of the Access Token.

 

The Facebook API will not allow any Posts from the API rto personal pages without a Registered App, which I have already requested permissions top get, but because of COVID 19 it might take a while to get it registered.

 

If this is interesting to anyone, I'll continue development and try to make things easier. 


Edited by chef, 30 March 2020 - 03:35 PM.

  • BillOatman and rechigo like this

#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157215 posts
  • Local time: 05:40 PM

Posted 30 March 2020 - 03:34 PM

Looks neat. Just to confirm, you could probably also do this via webhooks right?


  • chef likes this

#3 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4738 posts
  • Local time: 05:40 PM
  • LocationPeterborough, Canada

Posted 30 March 2020 - 03:40 PM

Looks neat. Just to confirm, you could probably also do this via webhooks right?

 

Yes, You can absolutely do this with webhooks

 

The URLs that are important are:

 

 graph.facebook.com/me/photos?   

 

url={EMBY_URL_IMG}&message={YOUR_MESSAGE}&access_token={YOUR_ACCESS_TOKEN}


Edited by chef, 30 March 2020 - 03:40 PM.


#4 tvboxverema OFFLINE  

tvboxverema

    Newbie

  • Members
  • 5 posts
  • Local time: 11:40 PM

Posted 02 April 2020 - 12:45 PM

Buenas esta guapo hay codigo fuente para poder echarle un vistazo?

es que he puesto el dll y no me lo detecta emby

 

gracias

 

Hi, is this handsome, is there a source code to take a look?
 
is that I have put the dll and it does not detect it emby
 
 
 
thanks


#5 rechigo OFFLINE  

rechigo

    Advanced Member

  • Members
  • 780 posts
  • Local time: 02:40 PM
  • LocationCALIFORNIA

Posted 02 April 2020 - 02:26 PM

Buenas esta guapo hay codigo fuente para poder echarle un vistazo?
es que he puesto el dll y no me lo detecta emby

gracias

Hi, is this handsome, is there a source code to take a look?

is that I have put the dll and it does not detect it emby



thanks

https://github.com/c...1/Emby.Facebook

What was the path to the folder you put the plugin dll in?

Sent from my SM-G973U using Tapatalk

#6 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4738 posts
  • Local time: 05:40 PM
  • LocationPeterborough, Canada

Posted 02 April 2020 - 03:23 PM

I've updated the plugin on Github. You can now choose which users should be adding information to the facebook page. I suppose it is the proper thing to do, to have users opt out of public data posted on social media.

 

I also added a scheduled task that will run once a week and add a newly added media list to the page.



#7 tvboxverema OFFLINE  

tvboxverema

    Newbie

  • Members
  • 5 posts
  • Local time: 11:40 PM

Posted 03 April 2020 - 03:02 AM

Buenas consegui que saliera el plugin, error mio, me surge un problema pa sacar el id, ya que dice la pagina de tengo que crear una app? tengo que hacerla y de que manera?
gracias
 
 
Good I got the plugin to come out, my mistake, I have a problem to get the id, since it says the page I have to create an app? I have to do it and in what way?
thanks





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users