Description :–
Project URL https://drupal.org/sandbox/it.ravindrasingh/1970736
Tweet Poster module (D7) posts the status message with or without image from drupal website to twitter.com website by using Twitter API and Tweet Pic key. I had checked with the many other twitter related modules in drupal.org but did not find any module which provide posting image along with the status message.
This is a small module for D7 where we can extend it with any other custom form submit and node form submit. Module authorizes the twitter app dynamically once they post the status to twitter and shows the tweets on user’s twitter page.
Why I used Tweetpic API :-
Tweetpic.com itself uses the twitter web services and provides the storage for images. In this module all the images are stored in tweetpic.com .These images are used in status post is User has attached any Image.
Dependency Module : library
Required Library : Libraries has been added.
twitteroauth get it from https://github.com/abraham/twitteroauth/archive/master.zip
tmhOAuth (0.7.2) get it from https://github.com/themattharris/tmhOAuth/tree/6c4a2ae0650c7855c0e242fdf...
Configuration:-
1. Create a twitter app for your Website or project (https://dev.twitter.com/)
2. Download the module.
3. Enable it and go to admin > Twitter API Credential Settings
-Put Twitter App Consumer Key
-Twitter App Consumer Secret
-Callback URL (http://yourwebsite.com/twittercallback)
-TweetPic API (Get it from http://dev.twitpic.com/)
(Note: Please set the Access Level Read & Write while creating API keys on https://dev.twitter.com/ )
4. Save the configuration
5. For posting to twitter using Modules custom form go to Admin -> Structure -> Blocks -> Configure (Tweet Poster) block.
How it Works :-
In this module I have created a custom form (which will be shown in block) for sending the data to twitter. While sending the data ,first it checks whether the the twitter access token is available or not. If the access token is not available then it redirects to the twitter website and ask for the login to twitter account for that application to generate Access Token and Access token secret .Callback url redirects to your website with the response. If the callback respond is valid then it posts the content to twitter or else will show the response error.
Demonstration link for this project
http://w3web.in/drupaltest/
Username : tester
Password : tester
GIT repository link
git clone http://git.drupal.org/sandbox/it.ravindrasingh/1970736.git tweet_poster
Reviews of other projects:
| Comment | File | Size | Author |
|---|---|---|---|
| tweet_poster_screen_shot.JPG | 5.95 KB | RavindraSingh |
Comments
Comment #1
ram4nd commentedComment #2
RavindraSingh commentedbasically this module is developed for D7.
Comment #3
zestagio commentedHi, i'm reviewed your project, in the file tweet_poster.module:
'access callback' => TRUE, because I am as an anonymous user access to adjustments. http://w3web.in/drupaltest/admin/config/services/tweet_posterreturn tweet_post_agrs($tweet_status, $image_fid);but the functiontweet_post_agrsdoes not return anything, correct it. The same thing on the line 144:return twitterpage();.require_oncetomodule_load_include, and even better Use Libraries APIIn the file tweet_poster.admin.inc:
tweet_poster_adminuset()function. For example instead ofuse the
And most importantly, rewrite your code to Drupal Coding Standards
Sorry for my english
Comment #4
RavindraSingh commentedFixed all the bugs on http://ventral.org/pareview/httpgitdrupalorgsandboxitravindrasingh197073...
Moved into new branch 7.x-1.x
and @zestagio currently i am not authorizing to anonymous user access.
Libraries has been added.
twitteroauth get it from https://github.com/abraham/twitteroauth/archive/master.zip
tmhOAuth (0.7.2) get it from https://github.com/themattharris/tmhOAuth/tree/6c4a2ae0650c7855c0e242fdf...
Comment #5
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #5.0
RavindraSingh commentedAdded sandbox Project URL
Comment #6
RavindraSingh commentedIncreased priority of the project application as per review bonus guidelines.
Comment #7
abhitesh.das commentedHi,
Changing the priority to normal as stated in : https://drupal.org/node/539608
Also, please fix the error mentioned by zestagio, I can still access the http://w3web.in/drupaltest/admin/config/services/tweet_poster and can even change the API keys from there as an anonymous user. This is a security threat.
Overall, the module seems to be pretty promising and useful. I am looking forward for this module.
Comment #8
RavindraSingh commentedThanks for your review @abhitesh.das,
It was skipped from my mind. Now it is fixed
"'access arguments' => array('administer site configuration'),".Comment #9
klausiReview of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
I'm not sure about the security of the workflow with the unprotected menu paths, but I could also not come up with an idea how to exploit them, so I guess this is RTBC. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to jthorson as he might have time to take a final look at this.
Comment #10
RavindraSingh commentedThanks @klausi ,
Fixed all the given points.
Comment #11
klausino objections for a week, so ...
Thanks for your contribution, ravindrasingh!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #12
PA robot commentedProject 1: https://drupal.org/node/2026039
Project 2: https://drupal.org/node/2011366
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #13
klausiComment #14.0
(not verified) commentedReview of other projects