2

有谁知道这是怎么回事?

单击 Like 按钮时不再返回小部件变量。正如你在这个 Fiddle 中看到的,like 按钮有一个 ID 集。当回调触发时,widget 变量是未定义的,Facebook 是否删除了这个变量以阻止人们跟踪点击了哪些按钮?

JSFiddle:http: //goo.gl/rsvtuh

4

1 回答 1

1

Facebook is messing about with it's javascript API without updating the developers agains their breaking changes policy.

2 weeks ago i found out they stopped sending the widget parameter through the edge.create, breaking my app.

Today I found out they went back to returning the widget parameter only now it returns the dom element instead of a wrapper that holds the dom element, again, breaking my app.

In your case, Widget is now back, but you should be weary when using it. because it probably looks different now, and will likely change unexpectedly later.

于 2013-08-01T10:56:28.400 回答