List of possible 'changes' values in Facebook Realtime Update - facebook

I've implemented this for my site:
https://developers.facebook.com/docs/graph-api/real-time-updates/v2.0
and I am receiving updates successfully. The format of these updates is fairly easy to understand by understanding the JSON response. However, I can't find a list of possible types of changes (possible values for the JSON response) so I can handle / replicate all the scenarios that may come up.
Is this published anywhere?

The possible values for 'item' and 'verb' are not documented. Here's everything I have observed when receiving updates for pages only:
Items:
like
share
comment
photo
video
post
Verbs:
add
remove
edited
hide
unhide
Can't claim this is comprehensive, but that's the best of my knowledge based on reviewing logs of many thousands of updates. I would guess that user, permissions, and payments RTUS have their own sets of possible values.

Not sure what you mean with types of changes exactly. There's
https://developers.facebook.com/docs/graph-api/real-time-updates/v2.0#subscribefields
https://developers.facebook.com/docs/graph-api/real-time-updates/v2.0#receiveupdates
If you click on the first links down arrows on the right side, you'll get the list of fields that can change for the user and the page objects.
After some searching, I came across https://developers.facebook.com/docs/public_feed#updates There's a reference to http://activitystrea.ms/ in the code:
<activity:verb>http://activitystrea.ms/schema/1.0/post/</activity:verb>
Unfortunately, the website doesn't work apparantly, but one can view an old version here:
https://web.archive.org/web/20140720095121/http://activitystrea.ms/registry/verbs/
This seems to contain the list of possible verbs wihtin this schema. Which of those Facebook actually uses is not clear to me unfortunately. There's the specs as well: http://activitystrea.ms/specs/json/schema/activity-schema.html#verbs

Related

accessing XHR within google sheets

I've been using import functions a lot in my sports modeling, but I've never been able to figure out how to get past the issue of pulling information that is dynamically imported from another source.
For example, i'm trying to use importxml to pull the money line values in this link here: https://www.sportsbookreview.com/betting-odds/nfl-football/money-line/
I can get the information in the left columns up until "PINNACLE", and after research i now understand I can't get the rest of the information because it's not static on the page and I need to go to the source... how do I find the source of this information so I can pull it from there?
I tried inspecting the page, clicking on "network", clicking on "XHR", refreshing the page and previewing the results, but nothing seemed to match.
Am I looking in the wrong place?
The page uses websockets to download the data, so I don't think you could simulate it in Google spreadsheets using formulas (maybe it could be possible in a script). However in this particular case there is a 'classic view' variant of the page which includes all the data in its source:
https://classic.sportsbookreview.com/betting-odds/nfl-football/money-line/

How do you keep track of your comments on GitHub issues?

I want to find all the GitHub issues that I commented on. I tried searching for commenter:mbigras type:issue like the Searching issues and pull requests GitHub article suggests. But that method returns fewer results than the public activity section of my profile.
See both attached images:
Search method
Doesn't display current results:
Profile method
Gets mixed up with other public activity:
Is there a way to get the full history of my comments on GitHub?
EDIT
author:mbigras type:issue gives wider results but still not the full history:
What I'm looking for is a way to quickly view all my comment/issue history in all issues.
EDIT
I emailed GitHub about this. Search doesn't match the public activity section because search indexes issues by creation date and not last active date.
How do you keep organized about which issues you've commented on?
Search for commenter:username in the main Github search box.
For example commenter:gavinandresen
To see recent activity, select Recently updated from Sort dropdown
You can also narrow the search: is:issue commenter:gavinandresen
I have also been very frustrated when I could not find an issue that I have commented on a while ago. I even did not remember the project it was in. I knew only the problem I was referring to.
Then, I went to the Notification settings on Github and saw there is an Include your own updates option that is unchecked by default.
Once you check it, Github will send you an e-mail notification about every comment or PR you make. They you probably want to add an appropriate label and filter for emails so Github messages do not clutter an inbox.
My life has changed since then. Now, every time I want to find something I have written on Github, I just search for it in the e-mail notifications.
You can view all the issues on Github you have commented on by going to https://github.com/notifications/subscriptions and selecting Reason as Comment.
This will show all the issues that you've commented on.
You can also filter the issues by selecting other reason such as Assign, Author, Manual, Mention, etc. but you can select only one reason at a time. Also, you can filter the issues by repository by selecting the concerned repository from dropdown after clicking Repository
Search All GitHub using the search term is:issue author:#me
You can also check the following links.
For all your subscriptions
https://github.com/notifications/subscriptions
For all your issues
https://github.com/issues
For all your pull requests
https://github.com/pulls
In case someone is interested to know how to find these links, go to github's resi api documentation. The URL's are not explicitly described there. However, look for the page names bellow REFERENCE.
If you lowercase the relevant word (for example Issues become issues, Pulls become pulls) and put that after https://github.com/, you most probably will find what you are looking for.
This might be a little late, but there's also another way to find what issues/PRs you have participated in. This method also brings in a lot more things you might be interested in too!
When you are on the website main page, on github.com, use the keyboard shortcuts as described here to open your pull requests or issues. The shortcut for these is in particular [g, i] for issues and [g, p] for pull requests (I remember g by go, but whatever works for you.)
After you go to the page directed by these shortcuts you are greeted by an entire screen of goodies you can use! The search bar can be edited and the buttons can be used to make your experience fast!
Type involves:<your username> in the search box on the GitHub's main page. This will find all the issues that you commented on, was assigned to or mentioned in.
For example, if your username on GitHub is unclebob, the search query should look like:
involves:unclebob
Or if you're logged in to GitHub, then simply:
involves:#me
Note the difference between involves and similar search qualifiers - author and commenter:
author will find only the issues that were started by you; if you comment on the issue that was started by someone else, author query won't return it in the search results.
E.g., compare involves:unclebob and author:unclebob type:issue.
commenter will find only those issues where you commented second or later (creator of the first comment in an issue is considered its author and not a commenter); if you start an issue and then never comment on it, the commenter query won't return it in the search results.
E.g., compare involves:unclebob and commenter:unclebob.
In other words, when it comes to searching comments, author and commenter return only a subset of involves' results. So I recommend using involves not to miss anything.
Also, since Github is on the web, any HTTP search engine works, eg Google, Bing, etc. This works to the extent of your search engine's quality and the uniqueness of the writer name.
(Indeed, I actually do this all the time when I need to find any previously written web (engine)-accessible publication, including those on StackExchange. Names I use are 1 in probably an infinity, so Google often works better than forum search options.)
(Sample Google link.)
If you want to search for multiple users in a single search, use it like in the global search bar without the OR logical conjugation:
commenter:FantomX1 commenter:FantomX1-github
since the similar google way approach with 'OR' would not work
commenter:FantomX1 OR commenter:FantomX1-github

Content merging AEM

We're looking for a solution on how to best deal with the situation where multiple authors are working on the same page. If the first author pushes in the content, the second should have a way to merge it when he tries to publish. Launches appears to be a way to take care of this but it doesn't seem to be handling content merging. Is there any way an author can view the diff(and or do merge) of the content that might have been pushed by another author while they were working concurrently ?
Please help with any pointers.
Page modifications happen in real time to the underlying structure. They also happen at as small a level as possible.i.e. If you go into a text area and modify the text there, the text node is changed on the server, you aren't saving the entire page.
The only way that person A could interfere with what person B is doing is if they were working on the exact same area of the page. Which, honestly is a process issue. I say this because the answer to your question is that there is nothing out of the box to handle this type of scenario and if you are on 6.0 or higher and looking at the JCR3. JCR3 handles this far worse than the older version did. Last time I checked it didn't support nodes at all
Adding to what Bailey said, AEM OOB allow multiple users to edit same page in real time, though if multiple users are working on same node will be a reason of conflict. Such cases can be managed by defining a process like:
1. Take a lock of page and edit page or
2. Create versions of page and publish versions

Shopify: Variables Available on Thank You Page?

I've got a small bit of code on my Shopify thank you page for a home grown fulfillment system. In oversimplified terms, it outputs a URL with template code that uses the {{id}} field.
<p>
Your order information is {{id}}! This is not the actual code,
this is just an oversimplified version for this question
</p>
Up until a few weeks ago, the {{id}} template variable would output the ID of the order object. I use this ID and the Shopify REST api to fetch order information. Now, for reasons that remain unclear to me, this outputs a different number that appears to be the checkout-id field.
Is this intended behavior? Is there anyway to get the old, real order object ID back? I can think of numerous ways to work around this, but I'd rather not mess with a system that's worked in a stable way for the past 5 years.
Documentation on this is spotty at best, but it seems like the old global liquid variables I've been using have changed their behavior. Acording to Shopify's documentation, on that Thank You page
You have access to the checkout and shop liquid objects
There's documentation on both the checkout and shop objects, and I was able to get the old behavior I was after by replacing {{id}} with {{checkout.order_id}}.
It also appears there's a liquid order object available as well, but given it's not documented as being available on the checkout page, I'm not sure I'd trust it to keep working.

How do I fetch all the Open Graph videos watched by the user or associated with an application?

Apologies if this has been answered before.
I know how to get the watches actions from a given user:
https://graph.facebook.com/me/video.watches
My question is how do you get the videos that were watched? Doing so by traversing the list I get back in video.watches would be ridiculous because there can be duplicates and such.
In the open graph documentation it says you can do something like /me/recipebox:cook/recipes
(taken from https://developers.facebook.com/docs/opengraph/objects/ - Retrieving a set of Objects)
But I can't seem to figure out how to apply that to video.watches (the type is "video.other")
Getting the list of videos watched across the entire application would be fine as well.
Thanks in advance for any help!
The call me/video.watches should give you all watches across all applications. Most likely you have the user_actions.video permission missing. It shouldn't return duplicates. If it does consider filing a bug.