Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Post to facebook page #3767

Closed
mdeboer opened this issue Nov 27, 2012 · 25 comments
Closed

Feature: Post to facebook page #3767

mdeboer opened this issue Nov 27, 2012 · 25 comments

Comments

@mdeboer
Copy link

mdeboer commented Nov 27, 2012

Posting to my facebook page, this is my most wanted feature and I know it can be done, I really want to switch from Facebook to Diaspora* as my main active platform for many reasons but for that to happen I would need the ability to post to my Facebook page.

What would be nice is to be able to be connected to your page(s) as well as your account so you can select where to post to. This is only optional for me though, even if you have to make a choice in the account services screen that would be fine for now as well 👍

I read into it a bit and as far as I know its a case of asking 'manage_pages' permission on authentication and using the page tokens to publish posts, shouldn't be too much work I reckon.

Update 1:

I've looked in to it a bit more and in "/app/models/services/facebook.rb" the "/me" part of the needs to be replaced by the ID of the user's page if the user has granted permission using the 'manage_pages' permission. I am not sure where the URI is formed with the request to grant permissions though.

All of the users pages (ID's) can be found by requesting "https://graph.facebook.com/me/accounts" with as parameter the access_token of the user.

I've only had a brief look at the code, RoR is quite new for me but it's quite exciting. I'll see if I can make some changes by forking!

To discuss (I think):

  • How to introduce this feature to the users?
    • Show multiple facebook icons while posting each with a title set to something like "Facebook (My Page)"
    • Set a default in the user services screen by a drop-down box (and thus showing only one facebook icon while posting)

@spirosoik
Copy link

i think we can add this to the services of user's profile! https://joindiaspora.com/services
i can make some tests to check it on code

@mdeboer
Copy link
Author

mdeboer commented Jan 29, 2013

Please do, let me know if you have any Facebook API related questions ;)

@spirosoik
Copy link

how did you imagine this on services screen? "Set a default in the user services screen by a drop-down box (and thus showing only one facebook icon while posting)" ?

you want to post this on you facebook page! maybe is better to have it on stream page and if is connected with facebook , show to the user dropdown with pages to post ??

@mdeboer
Copy link
Author

mdeboer commented Jan 29, 2013

That is something we need to discuss, the options I could think of I have explained above.

We need a way that is simple but clear to the user where the content is posted to, if you can make a dropdown box while clicking on the facebook button on the stream page would be great I think. But I think users should also be able to use the Services page to select a default ... say if the users wants to post to a fb page by default when the facebook button on the stream page is selected.

@spirosoik
Copy link

ok i think the dropdown is a good idea! but for sure in services page we must have choices in order to select which pages want sto post streams! do you think?

@mdeboer
Copy link
Author

mdeboer commented Jan 29, 2013

I agree, i'd be interested in some screenshots when you've put something together :)

@spirosoik
Copy link

ok i will create a mock app!

@spirosoik
Copy link

Dude I have free time from my work to help on this, so I was tried to find the pages in my facebook profile but I couldn't to get them

@Flaburgan
Copy link
Member

I have no idea how Facebook is working, I do not use it. I think you should ask help to the Facebook team, not to the Diaspora* team ;)

@spirosoik
Copy link

You have right dude

@spirosoik
Copy link

OK guys I have implement the most functionality! Do you believe that we must save the pages of a user in the database? For now I am calling the facebook API and I am showing a dropdown in the stream box where the user can choose in which page (his pages only) can post.

@balasankarc
Copy link

This bug is still open right? Or is it fixed?

@spirosoik
Copy link

@balasankarc I have finished I didn't found time to test it further I will send the PR soon

@balasankarc
Copy link

Ok. :)

@lfzawacki
Copy link

How's this coming along? If you have given up on this I could take a look on the code.

@jaywink
Copy link
Contributor

jaywink commented Jun 12, 2014

@lfzawacki that would be awesome! AFAIK no one is working on this actively. All contributions welcome, we the users together make this project :)

Feel free to ask here or on FreeNode #diaspora if you need help.

@ghost
Copy link

ghost commented Feb 1, 2015

Has anybody continued to work on that?
I'd really love to see that feature in diaspora!

@svbergerem
Copy link
Member

As far as I know no one started working on that so if you are interested feel free to work on that issue.

@ghost
Copy link

ghost commented Feb 1, 2015

Unfortunately i have only a very basic coding knowledge, so i think i'm not up for the job.

I noticed that Friendica managed to implement that feature. Maybe this can help to get it done in diaspora:
https://github.com/friendica/friendica-addons/tree/master/fbpost
https://github.com/friendica/friendica-addons/tree/master/fbsync

deprecated facebook connector:
https://github.com/friendica/friendica/wiki/How-to:-Friendica%E2%80%99s-Facebook-connector
https://github.com/friendica/friendica-addons/tree/master/facebook

@Flaburgan
Copy link
Member

@apfelschnitz we already allows to post to facebook, this is specific to Facebook pages.

@ghost
Copy link

ghost commented Feb 1, 2015

I'm aware of that. But in Friendica you can actually post to Facebook pages, so i thought that might help.

@goobertron
Copy link

@spirosoik said just over a year ago that he had made a working commit and just needed to test it. If he's no longer able to complete this work, someone could pick up his commit https://github.com/spirosoik/diaspora/commit/ac7cd8187be99b5e8fb666c7e56792d59f73340b and if necessary fix it for the current code.

@mdeboer
Copy link
Author

mdeboer commented Feb 13, 2015

The changes required were quite simple if I remember correctly but require someone with more experience with the diaspora code base than me I guess. I just don't have the time nor the experience with diaspora to make and test those changes.

It boils down to adjusting the app permissions to request 'manage_pages' and requesting a list of user managed pages as I explained in the issue. There must be someone that can do this and maybe continue / use the code from @spirosoik ?

@jhass jhass added the bounty label Mar 13, 2015
@HankG
Copy link
Contributor

HankG commented Oct 6, 2018

I believe the changes to the Facebook API prevent this now, correct? At least that's true for posts to personal accounts. IF so this should probably be closed...

@denschub
Copy link
Member

denschub commented Oct 8, 2018

Obsoleted by #7874.

@denschub denschub closed this as completed Oct 8, 2018
@jhass jhass removed the bounty label Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests