Moodle plugins directory: Course publish | Moodle.org
Course publish
Block
course_publish
Overview
This plugin publishes a course link to a particular Facebook page. After creating a course, add
course_publish block in course page. Click "Login with Facebook" link and the course link "
<moodlepath>/course/view.php?id=?<course id>" is published in particular page.
Using
Some setting is required for this Block to publish course link.
Setting Panel of block
App ID, Secret Key, Message, Caption, Picture, Pageaccesstoken, Pageid is set by site admin.
Create a Facebook page
1. Go to facebook.com/pages/create.
2. Click to choose a Page category.
3. Select a more specific category from the drop down menu and fill out the required
information.
4. Click “Get Started” and follow the on-screen instructions.
Facebook Application Setting
Step 1: Go to https://developers.facebook.com/ > Login with you Facebook account > Go to
My Apps > Click Add a New app > Go to Facebook Canvas > Insert name of App > Choose
category > Click create app id > Go to your created app
Step 2: Go to settings > Enter Namespace > Enter App Domains > Enter Contact Email > Click add platform > Select website > Enter Site URL > Save changes.
Step 3: Go to Status and change > Make this app visible to all.
Graph API Explorer Setting
Go to Tool & Support > Click on graph API Explorer > Select your app name from drop down
list of graph API explorer > Copy Access token and paste it to "pageaccesstoken" field in block
course_publish configuration page.
Contributors
- DualCube
Thank you so much for sharing this!
We have made the necessary changes and uploaded the plugin again. Please check and let me know your thoughts.
Thanks and Regards,
Arindam
http://integration.moodle.org/job/Precheck%20remote%20branch/13515/artifact/work/smurf.html
Hi. Thanks for updating the plugin.
course_publish/foo
left in the code (together with relevant strings). You probably used a template for the code and did not remove this example setting.block/course_publish:myaddinstance
defined here? Your methodapplicable_formats()
does not allow adding instances to the personal dashboard (My home).'mod-quiz' => false
and'course-view-social' => false
in that method?$DB->update_record()
rather than$DB->execute()
postlink.php
For now, I am going to mark this as needing more work. Thanks for your patience with the review and approval process.
Thanks a lot for the feedback. We have fixed the mentioned issues and requested for re-approval.
Regarding the Plugins bot issue we have fixed almost all the errors. But a few phpdocs issue couldn't be resolved. We searched in moodle forums also and got the below Moodle Tracker link.
https://tracker.moodle.org/browse/MDLSITE-3694
It will be really great if you can suggest what exaclty needs to be fixed.
Thanks and Regards,
Arindam
No worries regarding the prechecker results. I appreciate your attempt to reach 100% green there. It is known that these automatic checks do not always work well. I'll get back to reviewing this tomorrow, will let you know.
Thanks for providing fixes promptly. Please note there some things left yet:
error_log
has probably been added by accident.instance_allow_multiple()
enabled. So there can be multiple instances of the block in the course. Yet all your DB logic implicitly expects that there is only one block per course. That can lead to some unexpected behaviour.block_course_publish.php
looks quite misleading to me. It suggests that the file was written by Facebook which I believe is not correct.Thanks for the feedback. The mentioned changes have been fixed and we have requested for a re-approval.
Kindly check and let me know your thoughts.
Thanks and Regards,
Arindam
Thanks for the updated version. I believe this is good to go now. You are cleared to land, welcome to the Plugins directory!
Thanks a lot for the feedback and help.
Thanks and Regards,
Arindam
Thanks for reaching out! Actually, though it's possible, it will require some customisation in codes the plugin and is not possible only via settings.
Let me know if you need further assistance.
Thanks and Regards,
Arindam
Thanks for your appreciation. We are glad that our plugin has been useful to you.
Thank you.