Needs work
Project:
Drupal for Facebook
Version:
7.x-3.x-dev
Component:
Contrib Submodule
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Apr 2011 at 17:15 UTC
Updated:
4 Jun 2013 at 13:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
kumkum29 commentedHello,
is that someone can explain step by step setup of this radio button ?
Thanks.
Comment #2
Dave Cohen commentedStart with the README.txt included in modules/fb. Continue with http://drupal.org/node/912614, eventually working your way to http://drupal.org/node/933988. That's as close to step-by-step as exists right now.
The doc and example module are written for Drupal 6.x (at the time I write this) but hopefully need little modification to work with Drupal 7.
Comment #3
lekvarnik commentedHmm, the documentation is very confusing. Could you make it more straightforward? Are there any websites which use your module to post node content to facebook fanpage walls? Thank you for your reply Dave.
Comment #4
geerlingguy commentedSubscribe - I may have some time to do some docs work here and there, as I'm likely going to be using Drupal for Facebook on a site I'm building right now.
Comment #5
kumkum29 commentedHello Dave,
On Drupal 6 I was not able to post my nodes on a wall.
I read all the documents and I create my module with the code fb.example but the radio button still does not appear.
On Drupal in the user account I have the following message: "This account is not associated with a Facebook Application."
Are there any parameters to be set on the account Drupal or the account Facebook ?
Thank you for your help.
Comment #6
kumkum29 commentedit's ok.
Now I see the button "share to facebook" on the edit page of the node.
The articles are posted on my wall.
Is it possible to publish articles on a Facebook page and not on my account?
Thanks.
Comment #7
kumkum29 commentedhttp://drupal.org/node/685320#comment-3224496
Comment #8
Countzero commentedHi all and big thanks to Dave for this great module. Once you've caught the concept, it's really powerful and pretty straightforward to use.
I posted on the thread listed above and included an example of a corrected version of the code in fb_example.module to make it work with Drupal 7.
Basicaly it's about renaming hooks and forms' ids.
Details are in the thread : http://drupal.org/node/685320#comment-5103642
Comment #9
dan_metille commentedHi kumkum29,
Would like to know if you were successful publishing articles on a FB page?
Could you also please give more details about your module?
For now, I only see the 'share to Facebook' button, but no article get posted.
thanks for help.
Comment #10
imoreno commentedHi all,
new bounty for fb_example.module for d7 can be found here: http://drupal.org/node/1348040
Anyone?
Comment #11
imoreno commentedDave,
I have a functional module that enables post of comments and nodes to Facebook using your Drupal API and facebook connect.
what would be the best way to incorporate it in the fb contrib modules package - I would like you to review it as i think it will be useful to other D7 users as well.
Please advise,
Itzhak
Comment #12
imoreno commentedHi,
I've using this module for the last 2 days, so far looking good. it is working for me.
This module was developed by Sudhir Krishna S - thank you Sudhir
This module depends on FBconnect application + fb stream and it is very easy to install and use,
once it is enabled it will allow you to choose witch content types and comments can be published to FB and if the user is currently connected to facebook - adds the check box for users - enabled by default.
Dave,
as you suggested i think this module should be incorporated in the next FB contrib module release and not as a stand alone module. sorry this is not a patch file, Could you please review it?
BR
Itzhak
Comment #13
Dave Cohen commentedThanks for sharing that. Code in modules/fb/fb_stream.module is very old, predating the graph api, and it could use an update. I think ideally code like this would go into that module. Ideally it would use the global $_fb object which modules/fb initializes. I'm not sure off-hand where the $token['fb'] comes from that this module uses.
I have some code in another module which I am planning to merge into the next major upgrade to modules/fb. Your fb_nc_publish might be useful in the meantime.
If anyone wants to implement this as a patch to fb_stream.module, it would probably get into the next release.
Comment #14
imoreno commentedThank you for reply.
I have attached even a better version with 2 major improvements:
1. check-boxes on node & comment edit forms are now checked by default
2. comment display on FaceBook stream on the user wall has the node that was commented title as well
Apologize this is not submitted as a patch... i have to learn how to do so,
If this is useful to anyone,
BR
Itzhak
Comment #15
ibullockHi imoreno,
Thanks for posting this module! It has certainly got me a lot closer to getting my content publishing to Facebook.
I've enabled publishing to Facebook on a content type now, but don't seem to be getting any options to publish it when I edit or create a node of the type. Is there another step required for setup?
Thanks again!
Comment #16
imoreno commentedHi ,
Are you loged in to facebook while editing? these options will shaw up only if you are loged in to the site with FaceBook account via your FaceBook connect app.
Itzhak
Comment #17
m4xjb commented@imoreno
Hi, I am trying to get Drupal to automatically post to Facebook and have been following various threads without any luck yet.
I've created my Facebook App successfully and successfully installed the following FB modules: FB API, FB Aps, FB Connect, FB Streams, FB Forms, FB Example Customizations & FB Friend Features.
I assume not all of those modules are necessary for what I want to achieve but I've enabled them anyway.
I then installed your module, linked it all up and logged in to Drupal with Facebook Connect. It seemed to work as I can select which content type to publish to facebook and the tick box appears when I add new content.
However I get the following error when I publish the content:
Notice: Undefined property: stdClass::$body in fb_nc_publish_node_insert() (line 64 of /sites/all/modules/fb_nc_publish/fb_nc_publish.module).
Then when I deleted the content I get this error:
Notice: Undefined index: #entity_type in fb_nc_publish_form_alter() (line 43 of /sites/all/modules/fb_nc_publish/fb_nc_publish.module).
I'm not sure how to fix. Could you (or anyone!) offer any advice? Would be much appreciated!
Thanks,
Max
Comment #18
christophrumpel commentedHI guys, on the one hand im absolutely gladfull for the amount of posts to this topic. On the other hand im struggeling with just posting nodes to my FB page for days. There several modules and guides, but most of them are out of date or bade documented. It seems there are are lot of people out there that would like to manage this function for their site and i do not understand why there is no goo step by step documentation and good modules. To do this by twitter took me 30min! (first time)
:-(
I am using imoreneo's modul but i seems my app is not connected in a proper way. I get this error when i click on "about" on my listed app on Drupal 7.
The webpage at https://newtnetnews.com/fb_cb/236804713062020/ might be temporarily down or it may have moved permanently to a new web address.
So i still dont know where to look first. I hope someone who manages to get this to work could help me.
Thx and greets
Christoph
Comment #19
bhylenski commentedhello All,
I have a Drupal 7 implementation working and working well, based on imoreno work. Great job by the way on this module. Saved my arse with a client a few weeks ago, after promising him something I had only ever done in D6. Thank you. Should we add this as a working module for D7. It needs some cleaning up and some documention for newbs to use...but it's a handy solution that works really quickly.
My question is how do we simply add the Page/Group/User option to this module. Ive been playing with some solutions but can't seem to get your code to publish to a page. I've followed Dave Cohen's advice with D6 and it works fine, but with your new fb_nc_publish module. I've yet to be able to get publish.stream to function properly. Any help...where should I add the publish.stream (target_id)?? Please help, thanks.
Lets go with your fb_nc_publish.module as a starting point. I have it working and functioning properly. How do I redirect the publish to a page wall?
Comment #20
zwoelfgrad commentedThanks imoreno, for me your small module works perfect.
Comment #21
bhylenski commentedAny word imoreno on a solution...again loads of thanks for the implementation and module.
Comment #22
imoreno commentedHi bhylenski,
while this mini module was posted by me - I'm not the developer so my apologize as i don't know how to help you with this one - all i can say that the module is working very well for me AS IS, you may try contact Mr Sudhir Krishna S with a private message - he knows a lot about this issue.
sorry again!
Itzhak
Comment #23
brainHax commentedafter struggling a lot , i was able to post finally to my Facebook profile using Latest Drupal 7 + drupal for facebook + attached version of fb_nc_publish received by "imoreno" .
Any how , i want to post to facebook page wall , which i am admin of .
actor_id and target_id does not work with me , may be the facebook API changed or some thing ?
any one did it recently ?
Comment #24
brainHax commentedi some how managed to post to a wall .
Hard coded the page id of a FB page in fb_nc_publish.module , line 108.
$result = $fb->api('/xxxxxxxxxxxxxxxxxxxx/feed/', 'post', $params);
now drupal is posting to that page Behalf of me , instead of my profile :)
but still what i actually wanted was that : the post should look like , that it is coming from the page .
i mean : XXXX company page posted some thing . not XXXX user posted some thing on XXXX company wall ..
any idea ? :(
Comment #25
Dave Cohen commentedTake a look at the patch in #1454736: Post Content to Facebook Page using fb_stream.module, which will be in the 6.x build soon. I invite you to take a stab at porting that to D7.
Comment #26
jekhor commentedI tried to use new fb_stream features for posting to Facebook from D7. It just doesn't work :( No errors, log messages, etc...
Is this feature ready for use in D7?
Comment #27
Dave Cohen commentedIt provides some helper function you can use from D7, but what you're looking for has not been updated. Drupal 7 no longer calls hook_nodeapi(), so all of fb_stream_nodeapi() needs upgrading to D7.
I haven't had to do this myself yet. If anyone has time to make a patch, that would be great.
Comment #28
emicoma commentedHi BrainHax,
I tried to do the same, hard coding FB as above to publish to a wall page.
But posts are not published at all this way.
No error message, but no posts.
Have you done something else except hard coding the page id ?
thanks !
emi
Comment #29
emicoma commentedHi,
Using Brainhax publish module :
I did managed to publish the post, but it only appears on my personal history.
From there I need to share it on the wanted page to have it public, it is not automaticly pubished on the page.
any idea ?
thanks,
Comment #30
dalinian commentedI've modified this module a bit to allow publishing to a single page. It's not yet extesible for all facebook users, but it's a starting point. You can set a single wall to post on at /admin/config/fb-publish, you'll need the Page ID found at http://graph.facebook.com/MyPageName. It's mostly a proof of concept, because I think we'll need a user specific page id field somewhere (possibly on the user's profile?). I also added another checkbox on the node/add form for page streams. Oh and I added a permission that you'll need to enable to add the page id.
Comment #31
dalinian commentedOops...I left some dsm() commands in the previous upload...sorry.
Comment #32
dalinian commentedI hate to keep doing this, but I found a couple of other bugs in the page publishing version of the module. This version does seem to be fully functional though. Also note that if you want multiple users to be able to publish to a page, your app will need to allow the 'user_groups' permission.
Comment #33
stan turyn commentedHi dalinian,
could you expand on the "does not seem to be fully functional" part? What functionality is currently missing?
Comment #34
kurtfoster commentedI have installed the module from dalinian but nothing gets posted. I have taken a look at $accounts, there is only one account, for my app, but there are no other accounts. Ho do I get the app to include my account and one for my page in the $accounts array?
Comment #35
dalinian commentedHi Stan,
There are limitations for what you can do with this. It's not fully functional because only one wall can be used at a time for the site. So you can add multiple users to a wall but not a different wall on a per user basis. It also seems at the moment that the module publishes to individual user accounts no matter what.
~/ross
Comment #36
dalinian commentedHi kafmil,
In order to get this to work you will need to go to admin/config/fb-publish and enter your wall id. I'm not sure if you've done this or not. You will also need to ensure you've given correct permissions in your app on facebook.
let me know if this still doesn't work for you,
Comment #37
dalinian commentedI've been doing a little more work on this module to publish to a facebook wall. I've added more instruction in the README text and included new permissions for allowing users to publish to both individual walls and pages. I also fixed the bug that caused posts to add content to walls even if the checkbox was deselected.
I'm not sure if I explained that you must create a facebook app inorder to post to facebook pages, but this is the case and you must give the correct permissions to the users who want to post to those pages. You do not, however, need an app to post content to walls.
Anyway, here's the new code, I hope it's an improvement.
Comment #38
rakesh.gectcr@ dalinian
Big thanks, the module is working for me.
Regards,
Rakesh James
Comment #39
Dave Cohen commentedI did finally upgrade fb_stream to D7. So that offers a way to publish nodes in the latest .dev build.
I'm not sure exactly the differences between fb_nc_publish vs fb_stream because I haven't had time to look in detail. Dalinian if you or anyone else wants to summarize the differences and/or offer a patch that improves fb_stream I'd love to see it.
Comment #40
katya n commentedHi!
Thank you for the great module Drupal for Facebook! The module works for me and it can publish nodes to the FB wall, but how the subscribers/friends could be notice about the news? Which settings I have to change and how? Or I have to install other module for this purpose?
Regards,
Katya
Comment #41
katya n commentedHi again,
I have tested the module integration many times and I discovered that it is a Facebook's problem.
Sorry for bothering you.
Katya
Comment #42
katya n commentedComment #43
tinohuda commentedFor me its work only for administrator and not for user in roles who have permission to Post to facebook page/wall.
anyone have solution? thanks before
Comment #44
dubs commented@dalinian - thanks for the contrib to add comments.
Am I right in thinking this additional module (fb_nc_publish) is the only way to post comments onto people's walls. If so then can this functionality be merged - posting comments to FB seems really important to me.
Comment #45
deepa.verma commentedhello i am using fb_nc_publish module and its working fine but i want image also for that to be published for particular node but when i am printing node image is not there. any solution