Confluence User Mention Wiki Markup - confluence-rest-api

I am creating Blog articles on Confluence via the REST API. I'd like to use User Mentions within the article, e.g. the same thing as #Ben Rogers would give you when posting directly through the UI.
I can't find anything in the documentation so I'm guessing it'll have to be a more manual process, any suggestions on how to do this?

When you insert the user mention macro in a Confluence page, you can then click on the "Open in source editor" button and you will see the code inserted looks like this:
<ac:link>
<ri:user ri:userkey="ff10413554ef222e01222669b976001a"/>
</ac:link>
So you need to know the userkey for the users you want to mention, you can look this up in the database, see following link:
https://answers.atlassian.com/questions/277551/find-user-by-resource-identifier. Then just add those links with the corresponding userkey to the html code of your page.

Related

How to store and display map location in wagtails

I am trying to create an API for contact us page. The API take location through map click at wagtail admin panel and send API too. For now I want to know how can I ask user to pin a location and store it in my model. I cant think of anything to do.
class Contact_UsPage(Page): pass
My page name is Contact us thank you.
I tried looking at official wagtails documentation and couldn't find anything that would help me.
Not sure what you are doing but Googling "wagtail maps" returned some interesting looking options - including this blog post https://torchbox.com/blog/simple-maps-wagtail-google-and-geopy/ and this CodeRed block https://docs.coderedcorp.com/wagtail-crx/features/blocks/contentblocks/googlemap.html

Replicate a Facebook page and all its content

I would like to achieve the following:
GET all posts from a page and their related content (attachments, likes, visibility, tags, shares, comments, creation time...)
POST all that content in a new page
Assuming that I am admin of both pages.
I know that it's pretty straight forward to loop over the feed of a page and get all the posts' information. However, I'm not so sure about the POST part:
I guess that Facebook doesn't allow to "clone" people's
like/shares/comments below each post, on their behalf?
Considering that I will delete the first page, will all attachments disappear from Facebook's servers as well?
You cannot post in behalf of another user. And you cannot get all information you need with the Graph API.
What about renaming the page? If you like to delete the first page and clone it before, it looks like a rebranding or something ...

How can I unpublish/delete a comment of an Facebook Ad?

I need a solution where I can unpublish/delete comments on Facebook Ads. There are paid tools which have this feature, like this one:
https://www.agorapulse.com/blog/comments-facebook-dark-unpublished-posts
"Finding and responding to these comments was a major headache, so we
went digging on Facebook’s API and found a solution to include all
comments made on dark/Unpublished posts and we included them in our
unified Facebook Inbox."
With the normal command endpoint I can't get the commands for ads.
How I can access and manage the commands, which API endpoints I need?
There are a few endpoints you'll most likely be interested in:
1) Your ads are connected to a page, so you'll need to get data for your Page. See https://developers.facebook.com/docs/pages/managing for reference.
2) Your page contains the posts. See the section titled "Getting Page Posts" in the link from step 1.
3) The posts contain comments. Using the id of the post, make the appropriate API calls to get its posts. See https://developers.facebook.com/docs/graph-api/reference/v2.9/object/comments/ for reference.
4) Once you find the comment you want to delete, make the appropriate DELETE call on it. See graph-api/reference/v2.9/comment/ for reference.

How to change the "link" parameter on a Facebook page graph

How can one change the opengraph link value on a Facebook page (type: website) from
https://www.facebook.com/yourwebsite to http://www.yourwebsite.com
It seems easier than it is. I couldn't find an answer. Seems it has something to do with adding an app, and then?!
Example: http://graph.facebook.com/anguillabeachescom
I can’t see that being done anywhere on the page’s settings interface.
My guess would be you have to claim your domain with Facebook to make things work this way (and maybe have to have a special category set for your Facebook page – the example page you mentioned is of type “website”.)

Facebook Like Button for Facebook Page for Blog

I just created a Facebook page for my blog and am working on adding the like button. I suppose my first question is, is there already a like button added to a Facebook fan page itself and the code for the like button is so you can create a like button on a whole different page, like my Blogspot blog page? Since I'm the admin I'm not sure if I'm seeing whatever else is. If not, I'd like to add a like button to my Facebook page for people to like, but for the life of my cannot figure out where to paste the code. I know it says behind the tag, but that doesn't mean anything to me. Please help.
http://developers.facebook.com/docs/plugins/
On the Facebook page is a like button of course already integrated, on that page you can get code for your Blog or website.
Specifically, you're looking for this plugin:
https://developers.facebook.com/docs/reference/plugins/like/
Specify the URL you want the like button to like, whether that be your blog post or your facebook page.
You are looking for the facebook Like Box.
https://developers.facebook.com/docs/reference/plugins/like-box/