'URL No Longer Exists' when creating Voice Call record using Salesforce Telephony Integration API - rest

I am working to integrate my company's telephony system with Salesforce so we can use Einstein Conversation Insights on our call recordings. I've created a JWT and can properly authorize, but when I try to create a test Voice Call, I get the following 404 Response:
<table cellspacing=10>
<tr>
<td><span style="font-weight: bold; font-size: 12pt;">URL No Longer Exists</span></td>
</tr>
<tr>
<td>You have attempted to reach a URL that no longer exists on salesforce.com. <br/><br/>
You may have reached this page after clicking on a direct link into the application. This direct link might be: <br/>
• A bookmark to a particular page, such as a report or view <br/>
• A link to a particular page in the Custom Links section of your Home Tab, or a Custom Link <br/>
• A link to a particular page in your email templates <br/><br/>
If you reached this page through a bookmark, you are probably trying to access something that has moved. Please update your bookmark.
<br/>
<br/>If you reached this page through any of the other direct links listed above, please notify your administrator to update the link.
<br/><br/>If you reached this page through a link on our site, please <a href="/cases/logabug.jsp">report
the broken link directly to our Support Team</a> and we will fix it promptly. Please indicate the page
you were on when you clicked the link as well as any other related information. We apologize for the
inconvenience.
<br/><br/>Thank you again for your patience and assistance. And thanks for using salesforce.com!</td>
</tr>
</table>
The endpoint/URL I've been using in my POST request is 
https://myCompany.my.salesforce.com/services/telephony/v1/voiceCalls
I've successfully queried other endpoints, so I don't think the issue lies within my JWT or authorization. I have "Enable clickjack protection for customer Visualforce pages with standard headers" disable as I've seen some other troubleshooting sites suggest. I've tried different variations of the endpoint and of our URL, but no luck with anything.

Telephony api uses the conversation and routing services, try out this endpoint:https://mycompany.my.salesforce-scrt.com/services/telephony/v1/voiceCalls.
Btw, how did you do generate the jwt?

Related

Integrating FormSpree into GitHub Jekyll (Returns message: Form should post)

I am hoping to add a contact form to a GitHub Jekyll website. I have mostly been following advice from the most-liked answer here, from a YouTube tutorial here, and from the FormSpree site.
I created a FormSpree account, verified my e-mail address, and created a form (obtained an ID). Then, I tried to add a contact form into my GitHub Jekyll website, the code of which can be seen here. After that, I went to the corresponding site of that code (here) and sent a test form submission. In the e-mail address field, I tried both the e-mail address connected to FormSpree and an alternative email address.
Either way, upon submitting the "Send" button at the bottom of the page, the page refreshed with an error message: "Form should POST - Make sure your form has the method=POST attribute". I also did not receive the tested message in my email connected to FormSpree. I tried to research this error but see no solutions. As can be seen in the code (here), I believe I do set a method=POST attribute.
I am unsure how to proceed given my inability to effectively interpret the error message. Any advice on how to render this type of contact form successful, especially given this error message, would be very much appreciated!
There is an error in your HTML:
<form action="https://formspree.io/email#gmail.com method="POST" name="sentMessage" id="contactForm" novalidate>
Your action is missing a closing double-quote (") which leads to a false interpretation of your action attribute as "https://formspree.io/email#gmail.com method=" and your actual method as an invalid attribute post".
Should be fixed by replacing the above line with
<form action="https://formspree.io/email#gmail.com" method="POST" name="sentMessage" id="contactForm" novalidate>
Doing so in your pages source code, I was able to submit the form and landed on FormSpree landing page indicating, that your form needs to be activated.

Facebook Register Plugin not showing up?

I am trying to implement Facebook Register Plugin on my website for landing pages.
I am following this guide:
https://developers.facebook.com/docs/plugins/registration/v2.0
I've written following code:
<div id="registration">
<iframe src="https://www.facebook.com/plugins/registration?client_id=660604224016242&redirect_uri=http://automaton.in/store_user_data.php?&fields=[{"name":"name"},{"name":"email"},{"name":"password"},{"name":"gender"},{"name":"birthday"}]">
</iframe>
</div>
But nothing is showing up instead of a box with border.
I've also created my facebook app with app-id 660604224016242.
Also, I am running my site locally without a local server! Do I need to run this on a server?
Please help me, I really need to implement this plugin!

Link within email that opens a dialog

Ok, I have a client with a peculiar request. He wants to receive an (generated by a workflow) email with a hyperlink that will open a pop-up dialog if you click on it. Note: the link within the email should open a popup and not a web page in a browser.
I immediately thought this would be impossible, but after looking around a bit I found out that you can create a workflow variable with tags in them and insert them into the email body.
eg: here
The conclusion that I draw from this is that an email consists of html code that the email client renders. Now I'm wondering if there is a way to make use of a tag no cause a modal dialog to pop up?
I guess the question is what functionality the email client (Microsoft Outlook) supports. I can't figure how to attach some JavaScript or something that will be used by Outlook. Is there perhaps some embedded functionality within Outlook to accomplish this?
That is very easy. Use this sample code and understand how it works with just normal "mailto" function:
<!DOCTYPE html>
<html>
<body>
<p>
This is an email link:
<a href="mailto:someone#example.com?Subject=Hello%20again">
Send Mail</a>
</p>
<p>
</p>
</body>
</html>
use
window.open('example.html',400,600) ​;
in your HTML code..
Also Refer this link for the answer of your question
http://www.coderanch.com/t/121512/HTML-CSS-JavaScript/Opening-popup-JS-outlook-mails

Google DFP ads in email behaving strangely

I am trying out serving DFP ads in email. I'm following the guidelines here.
I have an ad unit set up just for email
I have a line item targeting that ad unit with just an image creative
The line item doesn't have any targeting restrictions or anything like that
The ad will show up in the email, at least the first time. The strange thing that I'm seeing is, after the first click, clicking on the ad again will often bring me to a blank page rather than the click-through page of the creative. Also, when I reopen the message, occasionally the image will not load. The code in the email looks like this:
<a href="https://pubads.g.doubleclick.net/gampad/jump?iu=/{my_pub_id}/300x250_email&sz=300x250&c={cachebuster}&tile=1">
<img src="https://pubads.g.doubleclick.net/gampad/ad?iu=/{my_pub_id}/300x250_email&sz=300x250&c={cachebuster}&tile=1" />
</a>
We've solved this by turning off cookies in the standard tag using the co= option; adding co=1 to the tag.
<a href="https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/{my_pub_id}/300x250_email&sz=300x250&c={cachebuster}&tile=1">
<img src="https://pubads.g.doubleclick.net/gampad/ad?co=1&iu=/{my_pub_id}/300x250_email&sz=300x250&c={cachebuster}&tile=1" />
</a>
The only problem (for us) that this creates is that we're unable to serve 3rd party tags, even ones that resolve directly to .gifs, using the standard tag.
Had the same problem and I solved it by using script to redirect click via script on my web server where ad is shown again so that all the cookies can be set.
Link looks like this:
http://www.mysite.com/dfpclick.php?adunit=mailing&cbuster=1369608725
Script dfpclick.php:
<?php
/* Google DFP url redirect*/
if ($_REQUEST['adunit']) {
$sUrl = 'http://pubads.g.doubleclick.net/gampad/jump?iu=/%mygoogleid%/'.$_REQUEST['adunit'].'&sz=1x1&c='.$_REQUEST['cbuster'];
}
?>
<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=<?=$sUrl?>">
</head>
<body>
<?php
if ($_REQUEST['adunit']) {
echo '<img src="http://pubads.g.doubleclick.net/gampad/ad?iu=/%mygoogleid%/'.$_REQUEST['adunit'].'&sz=1x1&c='.$_REQUEST['cbuster'].'" width="0" height="0" border="0" style="width:0px; height:0px;" alt=""/>';
}
?>
</body>
</html>
It turns out that DFP for small business requires cookie support to work, even when using the non-JavaScript method of calling ads. So it works fine in web-based clients like Gmail, but it doesn't work in Outlook and the like. DFP Premium can supposedly serve ads in email without requiring cookies.
Using the co= option doesn't work for DFP Small Business. My workaround is:
Use the same code for img <img src="https://pubads.g.doubleclick.net/gampad/ad?iu=/{my_pub_id}/300x250_email&sz=300x250&c={cachebuster}" />
And build a redirect link on your website <a href="http://yourwebsite.com/adunit/300x250_email">. This page reads and filters the response from http://pubads.g.doubleclick.net/gampad/adx?iu=/{my_pub_id}/300x250_email&sz=300x250&c={cachebuster} in order to get the click-tracking link using javascript link=$(xmlDoc).find('a').attr('href'); and redirect.
This workaround doesn't work for rotation (more than one creative/line item is competing for the same ad unit at the same time).
I'd like to know how to serve email ads in rotation using DFP SB

Facebook. Maximum number of requests allocated to your application

I have a Facebook aplication on my site with multi friend selector which posts to selected friends.
When I test it on local host all works fine, but when I upload it to live server on the last step of sending when I click post to my selected friends, there is a pop-up warning saying :
Sorry, you have run out of requests to sent with this application.
Please try again tomorrow
But it was my first post on the live server... What options or something else should I change to avoid this warning?
Added from comments
<fb:serverfbml width= "740" height="407" >
<script type="text/fbml">
<fb:request-form action="%%POSTCARD_ACTION_URL%%?at=send_postcard" method="POST" type="POSTCARD" content='Click the View button to see the Postcard sent to you. <fb:req-choice url="%%FACEBOOK_ACTION_URL%%?view=%%hash%%" label="View">' invite="false">
<input type="hidden" name="mail_hash" id ="mail_hash" value="%%hash%%">
<fb:multi-friend-selector style="width:80%;" showborder="false" actiontext="Select the friends you want send postcard." rows="3" bypass="cancel" email_invite="false" />
</fb:request-form>
</script>
</fb:serverfbml>
I am using a multi-friend-selector wraped into serverfbml
If you were testing your application's invite feature, and deleted the requests when the application was not in sand box mode, then all the request rejections were calculated into the "user feedback" of your application....
Once facebook's systems have decided that your application has received enough negative feedback,they will start limiting your application's features. One such feature that they can limit is requests...
All limitations enforced on your application can be viewed in the Insights >> Diagnostics tab in your application's settings.
With regard to initial invite limitations, when you start developing your application, AFAIK, you have a limit of 50 requests per user, per day as shown below :
UPDATE
After some further discussion and updating the original question, It seems that you are using the old method of inviting friends - FBML. As you can see from the documentation pages of FBML, they are in the process of (and nearly finished) removing their support for it.
We are deprecating FBML. On Jan 1, 2012: FBML will no longer be
supported on Platform. June 1, 2012: FBML apps will no longer work.
All FBML endpoints are removed. If you are building a new application
on Facebook.com, please implement your application using HTML,
JavaScript and CSS. You can use our JavaScript SDK and Social Plugins
to embedded many of the same social features available in FBML.
You should seriously consider migrating to use the newer Requests Dialog. All the information you need is in link.
https://developers.facebook.com/docs/reference/dialogs/requests/
You'll need to use the Facebook JavaScript SDK and after setting it up and calling the FB.init() function, you'll want to make a call to the FB.ui() function and tell it to open the Requests Dialog.
Further Update
After filing a bug report to do with the incorrect displaying of Request 1.0 when the application from which the screenshot was taken was set to use Request 2.0, Facebook replied to the bug first by "confirming and assigning" (see older responses in the bug report) and then stating that this "by design" will be removed as soon as FBML is totally deprecated. Facebook also stated :
Request 2.0 does not have limits as 1.0 did.
Good to know :P