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
Comments
i think we can add this to the services of user's profile! https://joindiaspora.com/services |
Please do, let me know if you have any Facebook API related questions ;) |
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 ?? |
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. |
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? |
I agree, i'd be interested in some screenshots when you've put something together :) |
ok i will create a mock app! |
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 |
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 ;) |
You have right dude |
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. |
This bug is still open right? Or is it fixed? |
@balasankarc I have finished I didn't found time to test it further I will send the PR soon |
Ok. :) |
How's this coming along? If you have given up on this I could take a look on the code. |
@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. |
Has anybody continued to work on that? |
As far as I know no one started working on that so if you are interested feel free to work on that issue. |
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: deprecated facebook connector: |
@apfelschnitz we already allows to post to facebook, this is specific to Facebook pages. |
I'm aware of that. But in Friendica you can actually post to Facebook pages, so i thought that might help. |
@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. |
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 ? |
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... |
Obsoleted by #7874. |
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):
The text was updated successfully, but these errors were encountered: