D
D
DoubleWish2015-09-01 17:06:21
PHP
DoubleWish, 2015-09-01 17:06:21

Why is facebook sharing link encoded?

habrahabr.ru/post/156185
I did sharing in the likeness, but when executing this piece:

return 'http://www.facebook.com/sharer.php?s=100'
            + '&p[title]='     + encodeURIComponent(options.title)
            + '&p[summary]='   + encodeURIComponent(options.text)
            + '&p[url]='       + encodeURIComponent(options.url)
            + '&p[images][0]=' + encodeURIComponent(options.image);

Parentheses are converted (encoded, eg p%5Btitle%5D ).
How to overcome it and what is connected with?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2015-09-01
@ZeroPT

They should. On the server, use urldecode() if needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question