Course publish

Blocks ::: block_course_publish
Maintained by DualCube Team
This plugin publishes a course link to a particular Facebook page.
Latest release:
8 sites
29 downloads
14 fans
Current versions available: 1


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


Screenshots

Screenshot #0
Screenshot #1

Contributors

DualCube Team (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • DualCube Team
    Sat, 30 May 2015, 6:23 PM
    Hi David,

    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
  • David Mudrák
    Wed, 3 June 2015, 6:19 PM

    Hi. Thanks for updating the plugin.

    • Please note the bug tracker URL does not contain a valid value. See my comment in MDL-50393 for further explanation.
    • It seems there is forgotten setting 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.
    • What is the point of having the capability block/course_publish:myaddinstance defined here? Your method applicable_formats() does not allow adding instances to the personal dashboard (My home).
    • Speaking of which, why do you have exceptions like 'mod-quiz' => false and 'course-view-social' => false in that method?
    • It is recommended to use $DB->update_record() rather than $DB->execute()
    • I can't see any access, sesskey and capability checks in the postlink.php

    For now, I am going to mark this as needing more work. Thanks for your patience with the review and approval process.

  • DualCube Team
    Wed, 3 June 2015, 10:31 PM
    Hello David,

    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
  • David Mudrák
    Thu, 4 June 2015, 2:14 AM

    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.

  • David Mudrák
    Thu, 4 June 2015, 4:59 PM

    Thanks for providing fixes promptly. Please note there some things left yet:

    • The bug tracker field for your plugin still does not contain a valid URL.
    • The README file in the v2.7-r3 version is not relevant for admins wanting to install your plugin. In fact, it provides quite confusing information.
    • Are you actually updating your github repo? It does not seem to contain the recent version uploaded here (sure, the version uploaded here should be considered as the "main" one, yet keeping both places in sync makes things easier for users).
    • The file error_log has probably been added by accident.
    • You have 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.
    • The file-level PHPdocs block you added to the file block_course_publish.php looks quite misleading to me. It suggests that the file was written by Facebook which I believe is not correct.
  • DualCube Team
    Thu, 4 June 2015, 8:25 PM
    Hello David,

    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
  • David Mudrák
    Tue, 9 June 2015, 4:30 AM

    Thanks for the updated version. I believe this is good to go now. You are cleared to land, welcome to the Plugins directory!

  • DualCube Team
    Tue, 9 June 2015, 2:43 PM
    Hello David,

    Thanks a lot for the feedback and help.

    Thanks and Regards,
    Arindam
  • Lexie Kings
    Mon, 6 Mar 2017, 5:37 PM
    is it possible to publish not only a link to the course but as well as a short description or requirements??thinking of inviting all custom essay writers via facebook for my course but wanted them to know what my course is about..thought a description may fulfill this role
  • Arindam Ghosh
    Mon, 6 Mar 2017, 5:42 PM
    Hi Lexie,

    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
  • RevengeVersion RankRemo
    Fri, 11 Aug 2017, 1:14 AM
    Facebook implements a technology called OAuth, which is a way for one website to use another for purposes of authenticating users. You may have noticed the way i have implemented same to my project USPS priority mail Tracking
  • DualCube Team
    Thu, 10 May 2018, 7:04 PM
    Hi! Asher,
    Thanks for your appreciation. We are glad that our plugin has been useful to you.
    Thank you.
  • Diane Kiton
    Sat, 21 Nov 2020, 6:37 PM
    Every social activity and business functioning is based on proper human resource management, also referred to as HRM or simply HR. While the basics of HRM are familiar to everyone, the seemingly simple nature of this subject is misleading https://thesisleader.com/human-resource-management-essay/.
  • Silison Dim
    Tue, 23 Feb 2021, 6:39 PM
    Nice Post
1 2
Please login to post comments