How to Prevent Notifications of Stub Comments in Google Plus? - google-plus

Situation: I receive too much notifications of stub comments in groups of Google plus
Examples: Yes; No; Your are welcome; thank*; .*[1,99], ...
Motivation: no productforum of Google for Google plus so thread here
Related in Inbox:
How to Filter/Categorise Stub Emails in Inbox?

You cannot by default settings. A feature request is sent to the developers about it.

Related

Google chat auto-reply bot

Is there any way to configure Google Chat so It will automatically reply when another user sends me a message? Similar to the way vacation reply works for GMAIL.
The trigger will be the message coming from a user. not calling any bot.
Sorry, unfortunately there is no way to do that
You can set your status as "Out of Office" and that will be reflected in chat.
https://support.google.com/mail/answer/25922?co=GENIE.Platform%3DDesktop&hl=en
The API is designed for bots so there is no way via API either.
You can always make a feature request, if you like.

Is there a event handler for new comments for Facebook comment plug in?

I am trying to leverage Facebook comments plug in and push notifications for post on my page. What I am basically trying to do is:
user creates a post
the Facebook comment is dynamically inserted for that post by suffixing id from that post.
The above two are already done in the page.
Now what I want is, when someone posts, a push notification is subscribed if the user allows and when a comment is made a push notification is pushed to the user. The user is identified by the ID of the post as well which is stored on database.
I tried to attach a event handler on Facebook iframe comment box but was thrown with cross origin error.
I was trying webhooks but couldn't work on local host and found I need ngrok to validate my test url. I am posting this to ask is that is my flow even valid or I am seriously misunderstanding the concept. If someone could validate my flow.I will be happy to work on it or I will be just wasting my time.
Here's the link with the Facebook comments applied on post:
https://helpingcow.com/postit/get_share_listings
The facebook have killed "comment.create" event subscriptions.See the answer here to my related question answer.The preferred method is to use webhooks.
As I have already mentioned in question,that I cant use ngrok because it only supports python 3.6 and above and I have 2.7.
But I used localtunnel from npm.It did the work and I have validated my localhost url and test webhooks are now functional.I really dont need the data from the json payload from webhooks but just need a way to get to id of the posted item when the facebook comment is posted but there is no way the client can know about that event unless some server sent events are used.

Google GMail callback when someone reply to thread

I'm using Google GMail Api. All works fine with synchronous requests. However I would like to get notified when someone reply to given thread_id to a callback somehow.
I found this article https://developers.google.com/gmail/api/guides/push?hl=pl about push notifications and it's great but still I don't know how to setup Observer I have described above.
I'm using PHP btw, but I just need concept how it works and how I can setup that kind of communication between API and app.
There is currently no available API that detects/observes (something that behaves like a callback) if there is a reply for a specific thread_id.
You'll have to do the checking yourself, doing some polling (with users.threads.get) to see if there is a reply. Similar to what the OP was doing in this post (emphasis mine):
We have a web application that makes use of the Gmail API to automate certain emails on our users' behalf. When the application sends an email, it stores the threadId returned by the Gmail API. It then uses this threadId to poll the Gmail users.threads.get API, looking for replies. When a reply is detected, it pauses future emails.
You can use the Push notifications provided by Gmail API. The document is available here:
https://developers.google.com/gmail/api/guides/push?hl=pl#python
It's pretty much straight forward. Create a topic, then create a push subscription for the topic. It requires a webhook pointing to your web app. Grant necessary permission to the Gmail service account as mentioned in the document.
Use the below Python code to get notified:
request = {
'labelIds': ['INBOX'],
'topicName': 'projects/myproject/topics/mytopic'
}
gmail.users().watch(userId='me', body=request).execute()
We get a response with HistoryId. Tracking all the messages since the HistoryId can be done like this:
history = (service.users().history().list(userId=user_id, startHistoryId=start_history_id)
I found the below video helpful:
https://www.youtube.com/watch?v=wjHp9_NAEJo

Can I send Instagram Direct messages programmatically through the API? Is there a limit?

I want to build an Instagram Hashtag Gallery (an image/video gallery that will scrape the image/video media of all public instagrams with a specific hashtag)- that part is easy enough and very common. However, given the uncertainties involved in receiving ALL messages when searching for a hashtag, I also want to send a confirmation message to users after their submission has been received. The best way would seem to be through an Instagram Direct private message. I cannot find anything about whether this is possible and if there are limits to the number of Instagram Direct messages my app can send.
Is this possible?
As far as I can tell, it's not possible.
With the Instagram API console, you can check for the supported methods: API Console
Sure it is, you just need to use the instagram private API.

How to post in Google+ wall

I want to share some information in Google+ wall from my application.
For that I go through the Google+ API. In that API they are mentioning how to get access token of a particular user, but they do not mention how to post in users wall using the access token.
Well, Google+ doesn't have a "wall," it has "Streams." The proper term might help you find better search results. Either way, unless you're a Google partner, the news isn't good:
The API is currently limited to read-only access. From the API website:
Note: The Google+ API currently provides read-only access to public
data. All API calls require either an OAuth 2.0 token or an API key.
Because it's read-only, you will not be able to update or post any information anywhere through the API -- you can only use it to pull basic information like profile and activity details.
Given that access to the API may change over time, I'll try to keep this answer up to date with information about news or changes related to write access.
News & Updates
2015-04-28: Google+ Domains API was announced way back in August 2013, but somehow I missed its relevance to Google+.
The Google+ Domains API allows Google Apps customers and ISVs to take advantage of enhanced Google+ APIs to build tools and services that can be used in a variety of ways.
No, it does not provide full write access to a user's Google+ profile, but it does give you minor advantages over the Google+ API v1, at least within a domain. This one's mainly for mobile app developers.
2015-01-21: I have revisited many of the sources linked in this answer and searched for news regarding API changes, but Google has been quiet.
2014-03-12: Various discussion threads on Google+ about write access (or lack thereof):
Discussion thread by Jeff Dwyer
In-depth discussion of the topic by Thor Mitchell (the Google+ team member mentioned in Update 6)
2013-12-03: The issue thread from UPDATE 1 has finally been responded to by a Google+ project member. Additional discussion regarding write-access to Streams is taking place intermittently on the Developing with Google+ community page.
2013-07-05: A developer named Eric Leroy has built an "unofficial" JavaScript library that provides read/write extension to the Google+ API.
via Google+ XHR Hack = w+ (Add/Post)
2013-05-14: A "social media management company" can gain additional API access by attempting to become a Google+ Pages API Partner.
Google+ Pages API Partner Application Form
More third party tools to help manage your Google+ page - An announcement from Eduardo Thuler
Original Google announcement of third party management tools
Here's an excerpt from the Partner Application Form:
The Google+ pages API allows social media management companies to add Google+ page management features into their tool. Access to this API is available through a whitelist, and access is granted to partners on a company by company basis dependent on fit with this API.
Other articles explaining the lack of a write API:
http://mashable.com/2012/08/02/google-to-developers-wont-screw-you/
2013-01-04: Google just announced Google+ History. You can use it to write "moments" (which are private by default) but can then be made public by sharing them directly to your stream and/or your profile. One of the moment types is CommentActivity.
2012-10-08: There's now a duplicate bug post with only a few comments, but you can check there for future updates as well.
2012-06-25: I came across the issue tracker post for Google+ Write Access. The enhancement request status is "New" and priority is "Medium" as of June 25th, 2012. There are some links of interest in the comments.
This might help: I have made this bookmarklet to post links to pages that I liked to my stream:
javascript:location='https://plusone.google.com/_/+1/confirm?hl=en&url='+location
The URL is self-explanatory. If your post content can be served via URL then you can post it like that. The only difficulty is to automate the posting callback from Google but I do not need it, should not be too hard.
If you use wordpress there is a plugin that allows you to post automatically to google plus WP Plugin Post to Google Plus however it's not free, cheap but not free.
You can probably debug it since it's php and see how they do that.
You can now do this. See google's developer docs below:
https://developers.google.com/+/domains/posts/creating
The only thing to be aware of is that the Google+ Domains API only allows creation of restricted posts, and only allows comments to be added to restricted posts.
Writing to Google+ Profile Streams is restricted to just domains.
For example, If you own a company named xyz co and has a domain xyz.com. You can used Google+ Domains API to write to streams. Though that will be restricted to people using same domain and using Google G Suit App for business and is not available for normal Google's gmail.com email ID.
The Google+ Domains API only allows creation of restricted posts, and only allows comments to be added to restricted posts.
For example Jon and Misha are working as employee in xyz co and has associated company mail id jon#xyz.com and misha#xyz.com then they can post to associated domain streams in Google+. Though these post will not be visible publicly and are restricted to be visible to members belonging to same domain. If any post has to be made public, then you have to do that task manually Ref.
If you are looking to post information on Google+ for some business or celebrity then you must are looking for Google+ Page API, which allows you to write post on business page. Though they have restricted here with partners application form that need to be approved for having your access to Pages API, which is very stringent and difficult to get approved.
The Google+ pages API allows social media management companies to add Google+ page management features into their tool. Access to this API is available through a whitelist, and access is granted to partners on a company by company basis dependent on fit with this API. If you are a social media management company interested in getting access to this API, please complete the form below with details about your company's platform. Please answer all questions below accurately; any inaccurate information that misrepresents your tool can affect your company's access to this API. If your company is a fit for this API's functionality, the Google+ team will reach out to the contact provided in this form with next steps. Please do not submit multiple entries to this form.
Other method to post in Google+ is via their Share button, Interactive Posting & Embedded Posting to Google+ Ref.
//Follow this : https://developers.google.com/+/mobile/ios/share/
-(void)shareGoogle{
[signIn authenticate];
[signIn trySilentAuthentication];
}
-(void)refreshInterfaceBasedOnSignIn {
if ([[GPPSignIn sharedInstance] authentication]) {
// The user is signed in.
NSLog(#"%#", [[GPPSignIn sharedInstance] authentication]);
[self didTapShare:nil];
}
else {
self.signInButton.hidden = NO;
// Perform other actions here
}
}
- (IBAction) didTapShare: (id)sender {
[GPPShare sharedInstance].delegate = self;
id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];
// Set any prefilled text that you might want to suggest
[shareBuilder setPrefillText:#"message"];
[shareBuilder attachImage:[UIImage imageWithData:imageData]];
[shareBuilder open];
likeShareBtn.userInteractionEnabled = FALSE;
}
- (void)finishedSharingWithError:(NSError *)error {
NSString *text;
if (!error) {
text = #"Success";
} else if (error.code == kGPPErrorShareboxCanceled) {
text = #"Canceled";
} else {
text = [NSString stringWithFormat:#"Error (%#)", [error localizedDescription]];
}
NSLog(#"Status: %#", text);
}
-(void)presentSignInViewController:(UIViewController *)viewController {
// This is an example of how you can implement it if your app is navigation-based.
[[self navigationController] pushViewController:viewController animated:YES];
}