Is it possible to add a custom parameter in a Open Graph story with a common action? - facebook

We're working on a fitness application where people run and carry out a physical activity for the community as part of a workout.
For example, on Wednesday, Axel ran 5.6km and helped dig a wild flower garden.
We want to build an easy way for users to share these stories on their timelines in Facebook with a map of the course they ran and a sentance that describes the activity. We've opted to use the fitness.runs common action and can provide the course information easily enough, however it's not clear if or how we can add a custom parameter task in the sentence. Ideally the story (with accompanied map) would read:
*Axel* ran *5.6* km to *help dig a wild flower garden* with GoodGym.
Any advice on how to get that working would be greatly appreciated.

I do not think this is possible. Looking at both the run action and the course object you cannot add custom properties. For example, when you go to configure the run action you see the following message at the top "Common Action Type: Run You are viewing the configuration options for the common Action Type: Run. These are read only and are displayed for informational purposes only."
However you might want to consider using User Messages which "allow users to write a personalized message attached to this action." Then you could encourage users to write something about what they helped to do.

Related

(Power Automate, Microsoft Forms connector) Finding Form using FormID?

I have inherited a bunch of flows from a former co-worker. One of these flows are using the: "When a response is submitted" Microsoft Forms connector as a trigger.
The connection is made using my former co-workers 'personal' work account and I need to switch it to mine (a service acc).
Now, my co-worker shared access to relevant SharePoint sites before leaving but must have forgotten to share access to this specific Form. I am unable to locate the form in our SharePoint setup and have even had our administrator try and help me look but no luck so far.
Looking at the connector the only thing I have to go from is a "Form ID", which I haven't been able to find much info about except for how to extract it to use in flows.
The form ID looks like this:
Xz9pUAX8ika_qIDyEUYU05TNwO5_-kpFmx7-D65GU8lUNFYzWkg1MUY2VEo3VTExSEdSVDBZT*******
I do not know how or if this ID is sensitive at all so I gave blanked out the last few digits to be safe. If seeing the full ID makes a difference and is not a security hazard I wouldn't mind sharing it.
Does anyone know a trick for locating a Microsoft Forms using a FormsID?
It looks like you´re in luck. The ID can be used when properly used in the HTML. For the following examples, I used the ID that you provided.
The standard link that you use for sending and collecting respones should look like this: https://forms.office.com/Pages/ResponsePage.aspx?id=Xz9pUAX8ika_qIDyEUYU05TNwO5_-kpFmx7-D65GU8lUNFYzWkg1MUY2VEo3VTExSEdSVDBZT*******
The "Share to collaborate" link should look like this: https://forms.office.com/Pages/DesignPageV2.aspx?subpage=design&FormId=Xz9pUAX8ika_qIDyEUYU05TNwO5_-kpFmx7-D65GU8lUNFYzWkg1MUY2VEo3VTExSEdSVDBZT*******
The last link only works depending on the settings.
Share to collaborate settings
If it doesn´t hopefully the first link can hopefully help you in copying the content.

Shall I mention the deep links in the sample invocation in the directory page?

I am making an action for google assistant.I have created some deep links so should I mention them in the sample invocations in the directory information? I also want the users to see the first welcome screen that is the default welcome intent and not directly jump to the other intents for the first time.I cannot decide what to do.Can someone please help me with this?
Showing them in your examples lets people know that the feature is possible.
If you really don't want to allow it when they first start - you can intercept the "deep link" at invocation time and send back a reply welcoming them first and explaining things, then either letting them do it or letting them do it in the future.

Determining how many people have been added to a facebook group by a single member

I am the admin of a Facebook group and am trying to keep track of how many people each user has added. I cannot seem to nail down how I can easily write a script to:
Determine how many people a User has added.
Echo that to a file in the format $User:$number_of_added_members.
I've been made aware I cannot do this with the API, I am banging my head against a wall here. If anyone could at least point me in the right direction it would be much appreciated.
I just did this...
actually i am a programmer and did it in the hard way because i needed group by users. I hoped that the graph api at least give me an xml of user with added by in order to make my code read it but it did not so what i did is just to copy the table on the members page and paste it on a txt file and make a python code read it and make a dictionary of user: number_of_users_he_added.
it was quick but there is a problem that the members page does not give u all the results, its infinity scroll and i have a lot of members.
u can write a js script that read the dom instead of copy paste or even a chrome extension but still have the problem with the infinity scroll.
if facebook provide the added by field in their graph it will be great
Maybe you can work with the site which lists all members and look for the string below the member which says "added by on " But I'm not sure, how long this stays before it switches to "in the group since"
Edit
Use a crawler software like the one in Symfony to traverse the HTML of the page. You will need a PHP CLI for this tool. DOMCrawler from Symfony

SurveyMonkey survey as in-page overlay/modal/lightbox

I've searched the SurveyMonkey website, both help... and developer..., as well as the general net and stackoverflow, and can't find any examples of a SurveyMonkey survey being displayed in an in-page overlay (referred to by some as a "lightbox" or modal).
I think what I need to use is SurveyMonkey's Embed option, as opposed to Invitation or Survey Popups:
http://help.surveymonkey.com/articles/en_US/kb/How-do-I-embed-a-survey-or-have-it-open-in-a-popup-window-on-my-site
I'd like that overlay div to appear, close, etc upon the same triggers as a regular survey would/could, that is open if the user has no previous SurveyMonkey cookie, close when completed or closed by user, etc.
I can probably hack through a solution by forcing the survey into a custom overlay I build, but the behaviors would be more tricky, probably having to read the SurveyMonkey cookie, I suppose. Or, perhaps I could check for certain IDs of SurveyMonkey content that exists at various stages to pull off the behaviors (but I'll have to look at the generated code throughout the process to know if this is an option).
In short, it seems like someone else has surely run into this issue before and likely that a solution has already been created, at least partial to save me some time. I just can't find it.
Here are some things I found on the embed itself:
https://www.surveymonkey.com/blog/en/blog/2013/04/23/how-to-embed-your-survey-on-a-website/
https://www.surveymonkey.com/blog/en/blog/2013/04/16/video-tutorial-how-to-embed-your-survey-on-a-website/
Any and all help much appreciated, pointers/resources, example code, etc. Thanks!

Facebook/Unity SDK basics

I have some basic questions that I couldn't figure out after searching for quite some time now. All tutorials and guides I've come across have the code already set up and I can't find them of much use. For instance, the Friend Smash example has the code integrated with buttons and other scripts that I can't use it in my own game.
I used Parse to upload my game and test it on facebook and it's working fine, but I want to add the social features to it (login, share, score etc.)
Picking up the code snippets that I'm supposed to use either brings me up errors (undefined variables etc.) or messes things up (I get the not-working, bugged login window on top of the running game inside Unity, while nothing happens if I build and run it).
Where am I supposed to put the code? For example:
https://developers.facebook.com/docs/unity/reference/current/FB.Init
In the "Example" part, where am I supposed to put this line?
FB.Init(SetInit, OnHideUnity);
Same thing here:
https://developers.facebook.com/docs/unity/reference/current/FB.Feed
If I use the "Example" code as it is I get errors.
Do I have to use specific names for the scripts?
This is my first time uploading a game and trying to add social features to it so these questions may seem simple, but I couldn't find an answer anywhere.
You should create your own class instead of "Example" class, where you put all your Facebook specific functions. Then you should invoke your methods with your own components, buttons, triggers, whatever.
It is also you, who should take care of pausing the game while running social functions (login, share etc.).